hookr_quote_swap
Preview a trade on a Hookr pool: what it would return, and whether the pool's rules let this wallet trade. Preview only, nothing is signed. Amount is in the paying currency and capped for now.
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": {
"poolId": "<poolId>",
"side": "<side>",
"amount": "<amount>",
"wallet": "<wallet>"
},
"name": "hookr_quote_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| amount | Yes | ||
| poolId | Yes | ||
| wallet | Yes | 0x wallet address |