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 Basic, EIP-7702, and Role-Based accounts in our Account Models guide. Basic accounts provide simple setup, EIP-7702 preserves existing EOA addresses, and Role-Based accounts offer enhanced security features.
Aggregated Token to Aggregated Token Swap
Both source and destination chains are optimized by the Toolkit.- Basic Account
- EIP-7702 Account
- Role-Based Account
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.- Basic Account
- EIP-7702 Account
- Role-Based Account
Chain-Specific Token to Chain-Specific Token Swap
Direct swap between tokens on specific chains without aggregation.- Basic Account
- EIP-7702 Account
- Role-Based Account
Chain-Specific Token to Aggregated Token
Convert a chain-specific token to an aggregated token for broader liquidity access.- Basic Account
- EIP-7702 Account
- Role-Based Account
Cross-Chain Bridge Operation
Bridge the same token between different chains (e.g., USDC from Arbitrum to Optimism).- Basic Account
- EIP-7702 Account
- Role-Based Account