Synapse Bridge REST API

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

[Deprecated] Originally used to get Swap transaction information

get/swapTxInfo

Query parameters

chaininteger required

The chain ID where the swap will occur

fromTokenstring required

The address of the token to swap from

toTokenstring required

The address of the token to swap to

amountnumber required

The amount of tokens to swap

addressstring required

The Ethereum address of the user performing the swap

Response

Successful response

datastring

Encoded transaction data

tostring

The address of the contract to interact with

Changes

No recorded changes to this endpoint across all 1 revision of this API.