Tokenize v4 LP positions
hookr_build_tokenizeBuilds, one stage per call, the unsigned calls that lock Uniswap v4 positions a wallet holds and mint a Hookr revenue token on their fees, as /tokenize does, each simulated from the wallet: the approval for Hookr's position door factory where it is missing, then the mint; pass the same arguments on every call, send the stage's call, and call again; the positions stay locked for good unless termDays is given, then go back to the wallet, and only their fees come out, less Hookr's 5% leg on positions off Hookr's hook.
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>",
"positions": "<positions>"
},
"name": "hookr_build_tokenize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The revenue token's name, the same on every call (default LP<id> Revenue for one position, LP Revenue for several). | |
| supply | No | The supply in whole revenue tokens, all minted to the wallet, the same on every call (default 1000000). | |
| symbol | No | The revenue token's ticker, the same on every call (default LP<id>r for one position, LPr for several). | |
| wallet | Yes | The wallet that holds the positions, signs every call and becomes the token's creator. | |
| termDays | No | Days until the positions go back to the wallet, one of 7, 30, 60, 90 or 180, the same on every call; leave it out to lock them for good. | |
| positions | Yes | Uniswap v4 position ids the wallet holds, comma-separated, 54 at most, the same on every call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | No | Each position as the tokenizer previews it. | |
| next | No | What to do after these calls. | |
| calls | Yes | Unsigned calls for this stage, in the order to send them. | |
| stage | No | approve, mint or done: what the chain is waiting for. | |
| terms | No | ||
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, refused or unknown. | |
| approval | No | What the approval call allows. | |
| positions | No | The position ids, as given. | |
| sendBefore | No | The Unix time in seconds the mint call must land by, or it reverts and must be built again; null for a lock for good (mint stage only). | |
| doorFactory | No | The factory that makes the doors the positions are locked in. | |
| lockedUntil | No | forever, or the Unix time in seconds after which the positions go back to the wallet (mint stage only). | |
| revenueToken | No | The revenue token's address, which follows from the wallet and the terms. |