loot_quote
Retrieve an exact buy or sell quote for LOOT tokens, calculating real router fees and caps to confirm the trade executes without reverting.
Instructions
Execution-time quote from the real router via eth_call: exact tick math, fees, and caps for the calling wallet. side buy takes amount_eth, side sell takes amount_tokens. A revert here means the trade would fail and the reason is reported.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token": "<token>",
"side": "<side>"
},
"name": "loot_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | ||
| side | Yes | ||
| token | Yes | ||
| amount_eth | No | ||
| amount_tokens | No |