---
title: "Get a Swap or Bridge Quote"
method: GET
path: "/v1/bridge/quote"
tags: ["Bridge"]
---

# Get a Swap or Bridge Quote

`GET /v1/bridge/quote`

Get a live quote for swapping or bridging tokens without executing anything. Specify the exact input amount (exact='input') or the exact output amount (exact='output') and the other side is returned, along with the route steps. The quote is indicative and subject to change; use `/v1/bridge/swap` to execute.

Maps to `/v1/bridge/swap` as: originChainId/originTokenAddress = tokenIn, destinationChainId/destinationTokenAddress = tokenOut.

**Authentication**: Pass `x-client-id` header for frontend usage from allowlisted origins or `x-secret-key` for backend usage.

## Query parameters

- `exact` 'input' | 'output' — Whether `amount` is the exact input amount (sell) or the exact output amount (buy).
- `originChainId` integer, required — Chain ID of the input token.
- `originTokenAddress` string, required — Input token address (use 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for the native token).
- `destinationChainId` integer, required — Chain ID of the output token.
- `destinationTokenAddress` string, required — Output token address (use 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for the native token).
- `amount` string, required — Amount in wei. The input amount when exact='input', the output amount when exact='output'.

## Response `200`

Quote for the requested swap or bridge.

- object
  - `result` object, required
    - `originAmount` string, required — Total input amount in wei
    - `destinationAmount` string, required — Total output amount in wei
    - `blockNumber` string — Block number the quote was computed at
    - `timestamp` number, required — Unix timestamp in milliseconds when the quote was computed
    - `estimatedExecutionTimeMs` number — Estimated end-to-end execution time in milliseconds
    - `steps` object[], required
      - `originToken` object, required
        - `chainId` integer, required — Chain identifier for the token
        - `address` string, required — Token contract address
        - `symbol` string, required — Token symbol
        - `name` string, required — Token name
        - `decimals` integer, required — Number of decimals the token uses
        - `iconUri` string, uri — Optional icon URL for the token
        - `marketCapUsd` number — 24h market capitalization in USD when available
        - `volume24hUsd` number — 24h trading volume in USD when available
        - `prices` object — Token price quotes keyed by fiat currency code
        - `priceUsd` number — Token price in USD when available
      - `destinationToken` object, required
        - `chainId` integer, required — Chain identifier for the token
        - `address` string, required — Token contract address
        - `symbol` string, required — Token symbol
        - `name` string, required — Token name
        - `decimals` integer, required — Number of decimals the token uses
        - `iconUri` string, uri — Optional icon URL for the token
        - `marketCapUsd` number — 24h market capitalization in USD when available
        - `volume24hUsd` number — 24h trading volume in USD when available
        - `prices` object — Token price quotes keyed by fiat currency code
        - `priceUsd` number — Token price in USD when available
      - `originAmount` string, required — Input amount for this step in wei
      - `destinationAmount` string, required — Output amount for this step in wei
      - `estimatedExecutionTimeMs` number — Estimated execution time for this step in milliseconds
    - `intent` object, required — The intent this quote was computed for
      - `originChainId` integer, required — The blockchain network identifier. Common values include: 1 (Ethereum), 8453 (Base), 137 (Polygon), 56 (BSC), 43114 (Avalanche), 42161 (Arbitrum), 10 (Optimism).
      - `originTokenAddress` string, required — A valid Ethereum address (0x-prefixed hex string) or ENS name (e.g., vitalik.eth).
      - `destinationChainId` integer, required — The blockchain network identifier. Common values include: 1 (Ethereum), 8453 (Base), 137 (Polygon), 56 (BSC), 43114 (Avalanche), 42161 (Arbitrum), 10 (Optimism).
      - `destinationTokenAddress` string, required — A valid Ethereum address (0x-prefixed hex string) or ENS name (e.g., vitalik.eth).
      - `amount` string, required
      - `maxSteps` number

## Other responses

- `400` — Invalid request parameters.
- `401` — Authentication required. Include `x-secret-key` header for backend usage or `x-client-id` for frontend usage.
- `404` — No route available for the requested token pair.
- `500` — Internal server error.

---

[API](https://skmtc.dev/thirdweb/apis/thirdweb-api.md) · [All operations](https://skmtc.dev/thirdweb/apis/thirdweb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thirdweb/thirdweb-api/revisions/67ab6773fb59/schema)
