/v1/quote endpoint analyzes your transaction, finds optimal routes, calculates fees, and returns a payload for signing. The first step is choosing the right mode for your users.
Choose Your Mode
EOA
MetaMask, Rabby, TrustFor standard wallets. Requires
fundingTokens.Smart Account
Nexus, ERC-4337Simplest setup. Native gas abstraction.
EIP-7702
Privy, Dynamic, TurnkeyFor embedded wallets with 7702 support.
Quick Comparison
Basic Structure
All quote requests share this structure:Understanding composeFlows
ThecomposeFlows array defines what you want to do:
- intent-simple
- build
- intent
Token swaps (same-chain or cross-chain):
Response Structure
Validate Before Signing
Always check the quote before asking user to sign:Next Steps
EOA Mode
For MetaMask, Rabby, Trust users
Smart Account Mode
For Nexus smart account users
EIP-7702 Mode
For Privy, Dynamic, Turnkey users
Sign Payload →
After getting your quote