Get Routes
Gets all swap routes available when swapping the specified token_in to receive the specified token_out.
Related Queries
- All Tokens: Use this query to fetch valid token IDs for
token_inandtoken_out. - All Chains: Use this query to fetch valid chain UIDs when populating
chain_uids.
Request URL
Method: POST
https://api.euclidprotocol.com/api/v1/routes
Curl
curl -X 'POST' \
'https://api.euclidprotocol.com/api/v1/routes' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"token_in": "usdc",
"token_out": "eth",
"amount_in": "100000000",
"chain_uids": []
}'