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

# Get swap quote for tokens on a specific chain

`GET /swap`

Retrieve detailed swap quote for exchanging one token for another on a specified chain

## Query parameters

- `chain` integer, required
- `fromToken` string, required
- `toToken` string, required
- `amount` number, required
- `address` string, required

## Response `200`

Successful response

- object
  - `routerAddress` string — The address of the router contract
  - `maxAmountOut` string — The maximum amount of tokens that will be received
  - `query` object
    - `swapAdapter` string — The address of the swap adapter
    - `tokenOut` string — The address of the token being received
    - `minAmountOut` BigNumber
      - `type` 'BigNumber'
      - `hex` string
    - `deadline` BigNumber
      - `type` 'BigNumber'
      - `hex` string
    - `rawParams` string — Raw parameters for the swap

## 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)
