Endpoint
Request Body Parameters
The complete response object from the
/base/route
endpoint.
This contains all the necessary information about the optimal route.The address of the input token.Example:
"0x4200000000000000000000000000000000000006"
for ETHThe address of the output token.Example:
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
for USDCIf true, the amount parameter represents the desired output amount instead of input amount.
Default:
false
If true, only direct swaps between the input and output tokens will be considered.
Default:
false
Array of protocol names to exclude from routing.
Default:
[]
Maximum acceptable slippage in percentage (0.1 to 49).
Example:
0.5
for 0.5% slippage toleranceThe receiver address for the output token.
Response
The complete response object from the
/base/route
endpoint.
This contains all the necessary information about the optimal route.The hex-encoded calldata to execute the swap through the router contract.
Response Types
Error Responses
Invalid Route
Invalid Slippage
Invalid Signer
Tips
- Always verify the
min_received
amount matches your expectations - Check that the
destination
address is correct - Consider gas costs when splitting across multiple protocols
- Store the route response before requesting calldata
Rate Limits
Please refer to our rate limiting documentation for details about request limits and quotas.Related Endpoints
- Route Endpoint - Get optimal swap routes
- Execute Endpoint - Execute the swap directly