Error
Reference
GetSwapInstructions
Aggregator routing for a quote whose deposit swaps on the source chain.
GET
Error
order_params.src_token differs from order_params.bridge_token_src. Call it immediately before sending the deposit; routing reflects pool state at build time.
Request
string
required
Hash returned by
GetQuote.Response
string
Contract the deposit call goes to: the
ApsisRouter on EVM chains, the program id on Solana.string
Input token.
string
Input amount, base units.
string
Output token of the swap. For a cross-chain quote this is the asset that bridges; for a same-chain quote it is the destination token.
string
Floor the swap output is checked against on chain.
payload is a oneof matching the source chain’s VM.
EVM: evm
string
Aggregator the router will call. Allowlisted on the contract.
string
0x hex calldata to pass through.string
Transaction value to attach. Non-zero only when the source token is the chain’s native asset.
Solana: svm
SvmInstruction[]
Instructions to run before the swap, such as creating token accounts.
SvmInstruction
The aggregator swap instruction. The deposit wraps it in the program’s
deposit_swap instruction, which runs the swap and checks the output against min_bridge_out.SvmInstruction[]
Instructions to run after the swap.
SvmLookupTable[]
Address lookup tables to attach to the versioned transaction.
SvmInstruction carries program_id, accounts (pubkey, is_signer, is_writable), and base64 data.
Using it
On EVM, map the fields straight onto the router call:buildSvmSwapDeposit in the SDK assembles the versioned transaction from the payload. Same-chain quotes on EVM use the same instructions with swapAndForward instead; see Same-chain swaps.
Errors
The last one means the market moved after the quote was issued. Getting a new quote is the correct response; retrying the instructions will keep failing while the route is worse than what was promised.