Synapse Bridge REST API
Get swap quote for arbitrary tokens on a specific chain
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.
get/swap/v2
Query parameters
chainIdinteger required
The chain ID where the swap will occur
fromTokenstring required
The address of the token to swap from
fromAmountstring required
The amount of tokens to swap in the token's native decimals
toTokenstring required
The address of the token to swap to
toRecipientstring
Optional. The address that will receive the swapped tokens. If provided, returns transaction data.
slippagenumber
Optional. The maximum allowed slippage percentage (0-100). Defaults to 0.5%.
Response
Successful response
Changes
No recorded changes to this endpoint across all 1 revision of this API.