The Server Wallet provides a convenient way to execute swaps using CDP EVM accounts. This feature combines the core Trade APIs (which handle price discovery and quote creation) with the Server Wallet’s ability to sign and broadcast transactions.
For detailed information about the core Trade APIs (price discovery and quote creation), see the Trade APIs documentation.
The Trade API currently supports Ethereum and Base mainnet networks only. Additional network support will be added in future updates.
For complete code examples showing how to execute swaps with both regular accounts (EOAs) and Smart Accounts using CDP Wallets, see the Trade API Quickstart guide:
Regular Accounts (EOAs) - Price estimation, creating quotes, and executing swaps with standard accounts
Smart Accounts - Leveraging ERC-4337 features like gas sponsorship and batch operations
The quickstart guide includes examples in both TypeScript and Python, along with links to full implementations on GitHub.