Skip to content
docs

checkSolanaDeposit

checkSolanaDeposit(request, swap, a): SolanaDeposit

Defined in: protocol-swap2-layerswap/src/verify.ts:429

Layerswap’s Solana deposit, read instruction by instruction: a legacy message this account alone signs; only the system, token, associated-token, compute-budget and memo programs; exactly one top-level memo, the swap’s sequence number; exactly one transfer of exactly the input, from this account, to the deposit address (SOL) or its associated token account (SPL, transferChecked with the source mint and decimals); an account creation only for that associated token account. The wallet then simulates it and holds the balances to the input.

LayerswapRequest

LayerswapSwapRecord

LayerswapAction

SolanaDeposit