/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
| Feature | EOA | Smart Account | EIP-7702 |
|---|---|---|---|
| Wallet support | All wallets | Smart accounts only | Embedded wallets |
fundingTokens | Required | Not needed | Not needed |
| Signatures | 1 per token | Always 1 | Always 1 |
| Gas payment | Same-chain only | Any chain | Any chain |
| First-time setup | None | Account deploy | Authorization |
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
| Field | Description |
|---|---|
fee | Gas cost in the specified token |
quoteType | How to sign: simple, permit, or onchain |
payloadToSign | Data user needs to sign |
returnedData | Expected outputs and routing info |