Route
Calculates and returns an optimal trading or interaction route. This endpoint uses Enso’s routing capabilities to find the best path for a given token swap or DeFi interaction. The response is signed and includes an expiration timestamp.
Query Parameters
The user's EOA address initiating the transaction.
The chain ID for the transaction.
Acceptable slippage tolerance for the trade, as a decimal (e.g., 0.01 for 1%). Must be between 0.001 (0.1%) and 0.5 (50%).
The address of the input token. Use 'native', 'eth', or '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' for the native chain asset.
The address of the output token.
The amount of token_in
to trade, in its smallest unit (e.g., wei for ETH).
Referral code for the transaction.
ID of the vault / deal being executed.
Response
Data signed with a signature