Authorizations
Limited demo key for API Reference: 5c951bc81da566bbd030ba8e20724063
.
Query Parameters
Type of action to perform
swap-action
, evm-calldata-tx
The address of the sender/user
Source chain ID
Source token address
Destination chain ID
Destination token address
Slippage tolerance in bps
0 <= x <= 10000
The exact in or exact out amount of the swap
swap-action
Swap direction for the action
swap-action
exact-amount-in
, exact-amount-out
Address to receive the swapped tokens
swap-action
The EVM address of the target contract (20 bytes hex)
evm-calldata-tx
Calldata for the transaction
evm-calldata-tx
Value to send with transaction
evm-calldata-tx
The amount of Erc20 being transferred
Optional: Use for calls requiring Erc20 transfers
evm-calldata-tx
The Erc20 spender requiring approval for the transaction call
Optional: Will default to the to
address
evm-calldata-tx
Specific bridge protocols to use
Optional: Will default to all available protocols
Alternate address to receive refunds
Optional: Will default to the sender
Response
Successful response with action data
Transaction data for execution
- EVM Transaction
- Solana Transaction
- Alt VM Transaction
- HyperCore Transaction
Transaction ID
Virtual machine identifier.
evm
, solana
, alt-vm
, hypercore
Expected amount to input (exclusive of slippage - recommended value to display in frontend)
Maximum amount to input (inclusive of slippage)
Expected amount delivered to users (exclusive of slippage - recommended value to display in frontend)
Minimum amount delivered to users (inclusive of slippage)
Swaps.xyz fee
Application fee (your fee!)
Exchange rate for the swap.
Estimated transaction time in seconds.
Estimated price impact percentage.
Flag indicating whether the transaction object requires a source token approval check.
All available routes for the action.
Bridge fee (from aggregated providers)
Bridge IDs used in the route.
Bridge route information (src chain + token, dst chain + token, BridgeId)