Build a fee collection
hookr_build_collect_feesBuilds the collection of a position's uncollected LP fees to the wallet that owns it, the principal untouched, simulated from the wallet: name tokenId for a position on Uniswap's PositionManager, or poolId for the launch's own position on a pool the wallet launched, which goes through the Launcher's withdraw with no liquidity and also moves the pool's arbitrage recapture share into the wallet's claims (hookr_claims). It returns ok with the call and its gas, or refused or unknown with the reason and no calls.
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": {
"wallet": "<wallet>"
},
"name": "hookr_build_collect_fees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poolId | No | A pool the wallet launched through Hookr: its launch's own position, which the Launcher holds for the wallet. Name tokenId or poolId, not both. | |
| wallet | Yes | The wallet that signs and is paid. | |
| tokenId | No | A position on Uniswap's PositionManager, by its token id. Name tokenId or poolId, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| does | No | ||
| fees | No | The fees the call collects; null where they did not read, never zero. | |
| calls | Yes | Unsigned calls, in the order to send them. | |
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, refused or unknown. | |
| deadline | No | ||
| position | No |