Base URL
Response Format
All responses follow a common wrapper structure:Configuration
Endpoints for retrieving supported chains, DEXs, tokens, and contract addresses.Get Chains
Returns the list of supported blockchain networks.
Example:
Get DEXs
Returns available DEXs for a specific chain.
Response Fields:
Example:
Get Tokens
Returns supported tokens for a specific chain, including their capabilities (swap, bridge, etc.).
Response Fields:
Example:
Get Contracts
Returns protocol contract addresses for a specific chain.
Response Fields:
Example:
Quote
Get Quote
Returns a multi-path swap quote with optimal routing across available DEXs.
Response Fields:
Example — Same-chain swap:
Transaction
Build Transaction
Builds a ready-to-sign transaction based on the selected action type. Theaction field determines the transaction type and required parameters.
Action Types:
Additional Fields by Action:
For swap and swapMultiHop:
For bridgeOnlyLz and bridgeOnlyCctp:
For swapAndBridgeLz and swapAndBridgeCctp:
Response Fields:
Example — Single-chain swap:
Relayer (Gasless)
Endpoints for gasless transaction execution. Users sign the transaction, and the relayer submits it on-chain, paying the gas fee.Estimate Relayer Fee
Returns the estimated relayer fee for a gasless transaction.
Response Fields:
Example:
Execute Relay Transaction
Submits a signed transaction for gasless execution via the relayer.
Strategy Types:
Response Fields:
Example — Generic relay: