price
API reference to fetch an indicative price for a swap.
Query parameters
sellTokenstringRequiredExample:
Address of the sell token
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48buyTokenstringRequiredExample:
Address of the buy token
0x2260fac5e5542a773aa44fbcfedf7c193bc2c599sellAmountstringRequiredExample:
Sell amount in token base units (e.g. Wei for ETH)
1000000000000Header parameters
x-api-keystringOptional
31Third API key (Request via [email protected])
chain-idstringOptional
Chain ID as hex string. (e.g.: 0x1 for Ethereum mainnet)
Responses
200Success
application/json
get
/1.3/swap/price200Success
Last updated