---
title: "[Deprecated] in favor of using the /swap endpoint, which now returns call data"
method: GET
path: "/swapTxInfo"
tags: ["Synapse Bridge REST API"]
---

# \[Deprecated\] in favor of using the /swap endpoint, which now returns call data

`GET /swapTxInfo`

[Deprecated] Originally used to get Swap transaction information

## Query parameters

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

## Response `200`

Successful response

- object
  - `data` string — Encoded transaction data
  - `to` string — The address of the contract to interact with
  - `value` object — The amount of native currency to send with the transaction
    - `type` 'BigNumber'
    - `hex` string

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