/v1/quote endpoint is the central endpoint for getting execution quotes. It accepts composeFlows that define your operations and returns execution costs, gas estimates, and payloads to sign.
Endpoint
How It Works
The quote endpoint:- Accepts composeFlows - Takes array of operations to execute
- Builds instructions - Processes flows into executable MEE instructions
- Calculates fees - Determines gas costs and execution fees
- Auto-detects signature type - Returns appropriate
quoteTypebased on mode and tokens - Returns signable payloads - Provides data that needs to be signed for execution
Request Structure
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Execution mode: eoa, smart-account, or eoa-7702 |
ownerAddress | string | Yes | Owner wallet address |
composeFlows | array | Yes | Array of operations to execute (min 1) |
fundingTokens | array | Conditional | Required for eoa mode only |
feeToken | object | No | Token for gas payment. If not specified, uses sponsorship (gasless). Requires API key with sponsorship enabled. |
authorizations | array | Conditional | Required for eoa-7702 mode if EOA not delegated (obtained from 412 response) |
accountAddress | object | No | Chain ID to Nexus address mapping for upgraded legacy accounts. See Account Address Override. |
gasLimit | string | No | Override gas limit for gas payment UserOp |
lowerBoundTimestamp | number | No | Execution time lower bound (Unix timestamp) |
upperBoundTimestamp | number | No | Execution time upper bound (Unix timestamp) |
Mode-Specific Requirements
- EOA Mode
- Smart Account
- EIP-7702
Required fields:
fundingTokens
- If
feeTokenis provided, it must match one of the tokens infundingTokens(same address and chainId)
authorizations
quoteType:permitoronchain(auto-detected)
Compose Flows
ThecomposeFlows array defines operations to execute. Three flow types are supported:
1. /instructions/intent-simple
Simple token swaps (same-chain or cross-chain):
2. /instructions/intent
Advanced multi-position operations:
3. /instructions/build
Custom contract calls:
Fee Token Configuration
Optional. If not specified, defaults to sponsorship (gasless):Account Address Override
TheaccountAddress parameter allows you to use upgraded legacy v2.1.0 addresses instead of the default v2.2.1 addresses. This is useful for users who have existing v2.1.0 deployments that have been upgraded to v2.2.1 implementation.
This parameter is only needed if you have users with legacy v2.1.0 deployments that you’ve upgraded. New applications can skip this entirely.
When to Use
UseaccountAddress when:
- User has a v2.1.0 Nexus deployment
- The account has been upgraded to v2.2.1 implementation
- You want to use the original v2.1.0-derived address (preserving funds and history)
Structure
Example with Account Address
Mode Support
| Mode | accountAddress Support |
|---|---|
smart-account | Full support |
eoa (Fusion) | Full support |
eoa-7702 | Not applicable (EOA is the account) |
Response Structure
Success Response (200)
Response Fields
| Field | Type | Description |
|---|---|---|
ownerAddress | string | Owner wallet address |
fee | object | Execution fee details |
quoteType | string | Auto-detected signature type: permit, onchain, or simple |
quote | object | Quote details for execution |
payloadToSign | array | Payloads requiring signatures |
returnedData | array | Results from compose flows (e.g., swap details) |
Quote Types (Auto-Detected)
The API automatically detects and returns the appropriate signature type based on your mode and token capabilities:permit: Token supports EIP-2612 (EOA mode) - gasless approval via EIP-712 signatureonchain: Token doesn’t support EIP-2612 (EOA mode) - requires on-chain approval transactionsimple: Smart Account or EIP-7702 mode - simple message signature
Error Response (412) - EIP-7702 Only
When usingeoa-7702 mode without authorizations and EOA is not delegated:
- Sign authorizations using
walletClient.signAuthorization() - Retry quote with signed authorizations in request
Best Practices
Let API Detect Signature Type
Let API Detect Signature Type
Don’t try to determine signature type yourself - the API automatically returns the appropriate
quoteType based on token capabilities and mode.Validate Fees Before Execution
Validate Fees Before Execution
Always check fees are within acceptable limits:
Handle All Error Responses
Handle All Error Responses
Implement proper error handling: