SwapParams
Parameters for executing a token swap.Chain identifier (e.g., “501” for Solana, “1” for Ethereum)
Contract address of the source token
Contract address of the destination token
Amount to swap in the smallest unit (e.g., wei for ETH)
User’s wallet address executing the swap
Slippage tolerance as a percentage (e.g., “0.5” for 0.5%)
Enable automatic slippage calculation
Maximum slippage percentage when using auto-slippage
Address to receive the swapped tokens (if different from sender)
Referrer wallet address for source token fees
Referrer wallet address for destination token fees
Positive slippage percentage to capture favorable price movements
Comma-separated list of DEX IDs to route through
Use direct routing without intermediate tokens
Maximum acceptable price impact percentage
Custom fee percentage for the swap
Gas limit for the transaction (EVM chains)
Gas price level: “low”, “medium”, or “high”
Compute unit price for Solana transactions
Compute unit limit for Solana transactions
Memo data to include in the transaction
SwapResult
Result of a completed swap transaction.Whether the swap was successful
Transaction hash or signature
Block explorer URL for the transaction
Additional swap details
Price impact percentage
SwapResponseData
API response structure for swap requests.API response code
API response message
SwapExecutionData
Swap execution data containing routing and transaction information.Routing information for the swap
Transaction data to execute (optional for some chains)