Routes API
Body
amountstring · decimalRequiredExample:
The amount of the input token to swap, represented as a string to preserve precision.
10.34inputTokenAddressstring · addressRequiredExample:
The contract address of the token being swapped FROM.
0xEa237441c92CAe6FC17Caaf9a7acB3f953be4bd1Pattern: ^0x[a-fA-F0-9]{40}$outputTokenAddressstring · addressRequiredExample:
The contract address of the token being swapped TO.
0xdddD73F5Df1F0DC31373357beAC77545dC5A6f3FPattern: ^0x[a-fA-F0-9]{40}$Responses
200
Successfully calculated and returned the top swap paths.
application/json
400
Bad Request - Missing or invalid required parameters.
application/json
500
Internal Server Error - Failed to calculate swap routes.
application/json
post
/api/swapRPC Calls to Quoter
Last updated