Generates a transaction for cross-chain swaps, bridges, and calls. The action includes transaction data, routing information, and fee calculations for executing the requested operation.
Limited demo key for API Playground: 5c951bc81da566bbd030ba8e20724063
.
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
Successful response with action data
The response is of type object
.