Quote Examples
Examples of quote requests for chain-abstracted operations
The quote endpoint enables you to request quotes for various operations including token swaps, cross-chain bridges, and complex multichain transactions. Below are practical examples for different scenarios.
Overview
Each example below shows both the JSON request body and the complete cURL command. You can copy the cURL commands directly to test the API, or use the JSON format with your preferred HTTP client.
For interactive testing, use the API Reference playground.
Account Types: Learn more about the differences between Role-Based and Basic accounts in our Account Models guide. Role-Based accounts offer enhanced security features but consume slightly more gas, while Basic accounts provide simpler setup and integration.
Aggregated Token to Aggregated Token Swap
Both source and destination chains are optimized by the Toolkit.
Aggregated Token to Chain-Specific Token with Custom Recipient
The source chain (where to take the assets from) is optimized by the Toolkit, while the destination chain is explicitly specified. There is a different recipient on the destination chain.
Chain-Specific Token to Chain-Specific Token Swap
Direct swap between tokens on specific chains without aggregation.
Chain-Specific Token to Aggregated Token
Convert a chain-specific token to an aggregated token for broader liquidity access.
Cross-Chain Bridge Operation
Bridge the same token between different chains (e.g., USDC from Arbitrum to Optimism).