loot_buy
Buy LOOT tokens with ETH through a router, using a pre-trade quote and adjustable slippage tolerance.
Instructions
Buy a LOOT token with ETH through the deployed router. Quotes the exact trade first via eth_call and demands the quote minus slippage_bps (default 200). Fixed 5,000,000 gas, never estimated. Needs LOOT_AGENT_PRIVATE_KEY.
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>",
"eth_in": "<eth_in>"
},
"name": "loot_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| eth_in | Yes | ETH to spend, decimal string, e.g. "0.05" | |
| slippage_bps | No | ||
| deadline_seconds | No |