v1

latestOpenAPI 3.1.02026-07-24130315342.2 KB
Swap Endpoints

Get swap quote

Get a quote for swapping tokens, including price details and executable transaction data.

get/api/v2/swap/quote

Query parameters

from_chainstring required

Chain of the token to swap from

from_addressstring required

Contract address of the token to swap from

to_chainstring required

Chain of the token to swap to

to_addressstring required

Contract address of the token to swap to

quantitystring required

Amount to swap in the smallest unit of the token (e.g. wei for ETH)

addressstring required

Wallet address executing the swap

slippagenumber double

Slippage tolerance (0.0 to 0.5, default: 0.01)

recipientstring

Recipient address (defaults to sender address)

Response

OK