Quote from a token to another
Changed onRequest
- Base URLhttps://api.enso.finance
- URLhttps://api.enso.finance/api/v1/shortcuts/quote
- AuthHTTP bearer
Query parameters
Chain ID of the network to execute the transaction on
Ethereum address of the wallet to send the transaction from
Routing strategy to use
Ethereum address of the token to swap from. For ETH, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
[ "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" ]
Ethereum address of the token to swap from. For ETH, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
[ "0x6b175474e89094c44da98b954eedeac495271d0f" ]
Amount of tokenIn to swap in wei
[ "1000000000000000000" ]
A list of swap aggregators to be ignored from consideration
A list of standards to be ignored from consideration
Latency/quality trade-off for aggregator querying. light returns fastest (short aggregator wait with early return once two usable quotes arrive), medium waits the full short window, high is the default balanced behavior, and max queries all aggregators in parallel with an extended wait for best execution (higher CU cost)
Response
Example response
{
"route": [
{
"via": "cctp-forwarder"
}
]
}Changes
- info
added the new optional
queryrequest parametereffort
- info
- info
added the enum value
akkato the propertyitems/of thequeryrequest parameterignoreAggregators
- info