Swaps on Solana
Intent-based cross-network swaps from a Solana perspective: one signed transaction, solver-filled, settled across networks.
What this looks like on Solana
Quoting
const quoteResult = await sodax.swaps.getQuote({
token_src: sol.address, // token on Solana
token_dst: usdc.address, // token on the destination network
token_src_blockchain_id: ChainKeys.SOLANA_MAINNET,
token_dst_blockchain_id: ChainKeys.ARBITRUM_MAINNET,
amount: 100_000_000n,
quote_type: 'exact_input', // or 'exact_output'
});Fees
Executing
Orchestrating manually? One Solana-specific step
Error handling
Last updated