Skip to content
Docs

Swap and bridge

Read quote fields

The input and output amounts, token identifiers, and estimated gas cost returned in a swap quote.

Overview

Quotes include fromAmount, toAmount, and token identifiers. estimatedGasUsd is optional and may be absent when no USD gas estimate is available, so show the gas line only when it is present. Store the transaction hash after broadcast so you can poll route status.

HTTP 200 — success envelope wraps the payload in data.

json
{
  "data": {
    "fromChainId": "ethereum",
    "toChainId": "base",
    "fromToken": "native",
    "toToken": "native",
    "fromAmount": "10000000000000000",
    "toAmount": "9950000000000000",
    "estimatedGasUsd": "4.20",
    "source": "aggregator"
  }
}