---
title: "Get swap quote for arbitrary tokens on a specific chain"
method: GET
path: "/swap/v2"
tags: ["Synapse Bridge REST API"]
---

# Get swap quote for arbitrary tokens on a specific chain

`GET /swap/v2`

Retrieve detailed swap quote exchanging any token for any other on a specified chain. Note that amounts are expressed in token's native decimals, not in human-readable format.

## Query parameters

- `chainId` integer, required
- `fromToken` string, required
- `fromAmount` string, required
- `toToken` string, required
- `toRecipient` string
- `slippage` number

## Response `200`

Successful response

- object
  - `id` string — Unique identifier for the quote
  - `chainId` integer — The chain ID where the swap occurs
  - `fromToken` string — The address of the token being swapped from
  - `fromAmount` string — The amount of tokens to swap in the token's native decimals
  - `toToken` string — The address of the token being swapped to
  - `expectedToAmount` string — The expected amount of tokens that will be received in the token's native decimals
  - `minToAmount` string — The minimum amount of tokens that will be received in the token's native decimals (includes slippage)
  - `routerAddress` string — The address of the router contract
  - `moduleNames` string[] — The names of the swap modules used for this quote
  - `callData` object, nullable — Transaction data object, only provided if toRecipient parameter was included
    - `to` string — Contract address to call
    - `data` string — Transaction calldata
    - `value` string — Amount of native currency to send with transaction (in native token decimals)

## Other responses

- `400` — Invalid input
- `500` — Server error

---

[API](https://skmtc.dev/synapseprotocol/apis/synapse-protocol-rest-api.md) · [All operations](https://skmtc.dev/synapseprotocol/apis/synapse-protocol-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/synapseprotocol/synapse-protocol-rest-api/revisions/9949980b368b/schema)
