Quote

Quote operations for token swaps

Create a quote for token swap

post

Computes optimal routing for a token swap and returns a quote with estimated outputs, costs, and routing details. The quote is stored server-side and a quote_id is returned for use with the Build endpoint.

Authorizations
X-API-KeystringRequired

API key for authentication. Can also be provided via Authorization header with Bearer prefix: Authorization: Bearer <api-key>

Body
takerstringRequired

Address holding input tokens with allowances set. This address will execute the transaction.

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f8b3c4Pattern: ^0x[a-fA-F0-9]{40}$
recipientstringOptional

Address to receive output tokens. Defaults to taker if not specified.

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f8b3c4Pattern: ^0x[a-fA-F0-9]{40}$
slippage_tolerance_bpsinteger · max: 5000Optional

Maximum acceptable slippage in basis points (0-5000). 100 = 1%.

Default: 100Example: 100
max_hopsinteger · min: 1 · max: 10Optional

Maximum number of intermediate swaps allowed.

Default: 4Example: 4
exclude_protocolsstring[]Optional

Protocol identifiers to exclude from routing.

Example: ["uniswap_v2","sushiswap"]
exclude_poolsstring[]Optional

Pool addresses to exclude from routing.

Example: ["0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8"]
simulatebooleanOptional

Whether to run full causal simulation. Disabling returns faster but less accurate quotes.

Default: true
gas_prioritystring · enumOptional

Gas price tier for cost estimation. Affects EIP-1559 gas parameters.

  • slow: Lower priority, saves gas cost but may take longer to confirm
  • standard: Normal priority, balanced cost and speed
  • fast: Higher priority, recommended for most swaps (default)
  • urgent: Highest priority, for time-sensitive transactions
Default: fastPossible values:
include_usd_pricingbooleanOptional

Whether to include USD pricing in the response. When true, costs will include gas_cost_usd, fee_cost_usd, max_slippage_usd, and total_cost_usd.

Default: false
check_allowancesbooleanOptional

Check on-chain allowances and only return approvals for tokens with insufficient allowance.

Default: false
include_permit2booleanOptional

Include Permit2 EIP-712 typed data for signature-based approval flow.

Default: false
Responses
chevron-right
200

Quote created successfully

application/json
post
/v1/quote

Last updated