Quotes
x402 payment header. Flow:
- Make the request without this header → receive
402 Payment Required - Submit USDC payment on Base (chain 8453) via
api.cdp.coinbase.com - Retry the request with this header set to the payment receipt
See https://github.com/rigoblock/agentic-operator/blob/main/AGENTS.md for full integration.
Token to sell — ticker symbol (e.g. ETH) or ERC-20 contract address.
ETHToken to buy — ticker symbol (e.g. USDC) or ERC-20 contract address.
USDCHuman-readable amount of the sell token (e.g. 1 for 1 ETH).
1Target chain. Accepts chain name or chain ID.
baseExample: basePossible values: Successful quote response
Best swap quote across Uniswap V2/V3/V4
Address of the token being sold
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeEAddress of the token being bought
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913Sell amount in token base units (wei)
1000000000000000000Buy amount in token base units
2485000000Exchange rate (buy per sell)
2485.00DEX source routing the quote
Uniswap_V3Chain the quote is valid on
baseEncoded calldata for on-chain execution
Contract address to send the swap transaction to
ETH value to attach (for native token swaps)
1000000000000000000Estimated gas units for the transaction
180000Bad request — missing or invalid parameters
Payment required (x402). Pay in USDC on Base and retry with X-Payment header.
Last updated