hookr_build_tokenize · Tokenize v4 LP positions
read-onlyBuilds, 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.
Input schema
{
"type": "object",
"properties": {
"wallet": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The wallet that holds the positions, signs every call and becomes the token's creator."
},
"positions": {
"type": "string",
"pattern": "^[0-9]{1,78}(,[0-9]{1,78}){0,53}$",
"maxLength": 4300,
"description": "Uniswap v4 position ids the wallet holds, comma-separated, 54 at most, the same on every call."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "The revenue token's name, the same on every call (default LP<id> Revenue for one position, LP Revenue for several)."
},
"symbol": {
"type": "string",
"maxLength": 16,
"description": "The revenue token's ticker, the same on every call (default LP<id>r for one position, LPr for several)."
},
"supply": {
"type": "string",
"pattern": "^[1-9][0-9]{0,29}$",
"description": "The supply in whole revenue tokens, all minted to the wallet, the same on every call (default 1000000)."
},
"termDays": {
"type": "integer",
"minimum": 7,
"maximum": 180,
"description": "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."
}
},
"required": [
"wallet",
"positions"
],
"additionalProperties": false
}