Lock LP as a Chop log
hookr_build_chop_logBuilds, one stage per call, the unsigned calls that open a Chop log for a token through Hookr's lock, each simulated from the wallet: the token's approval to the lock, CHOP's approval, then open, which wraps the token, pairs it with CHOP, stakes the LP and locks it until the unlock time; pass the same arguments on every call, send the stage's call and call again, and after the open pass its transaction hash as openTx to read the position it locked.
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>",
"token": "<token>",
"tokenAmount": "<tokenAmount>",
"chopAmount": "<chopAmount>"
},
"name": "hookr_build_chop_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The token to open a Chop log for. | |
| openTx | No | The open's transaction hash, once it is sent: the answer is then done with the position it locked, and nothing new is built. | |
| wallet | Yes | The wallet that holds the token and CHOP and signs every call. | |
| forever | No | Lock the LP for good instead: it never unlocks, so pass it only when that is meant. | |
| chopAmount | Yes | How much CHOP to pair against it, in whole CHOP, the same on every call; the two amounts set the pair's opening price. | |
| unlockDays | No | Days until the LP can be released, one of 30, 180, 365 or 730 (default 365). | |
| beneficiary | No | Who collects the CHOP rewards and gets the LP back after the unlock time (default the wallet). | |
| tokenAmount | Yes | How much of the token to wrap and pair, in whole tokens, the same on every call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lock | No | Hookr's Chop log lock. | |
| next | No | What to do after these calls. | |
| note | No | What Chop can change and what Hookr takes, said beside every call. | |
| calls | Yes | Unsigned calls for this stage, in the order to send them. | |
| payer | No | The wallet that signs and pays the deposit. | |
| stage | No | approve-token, approve-chop, open or done: what the chain is waiting for. | |
| terms | No | ||
| token | No | ||
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, refused or unknown. | |
| forever | No | Whether the LP is locked for good. | |
| warning | No | Said when the LP would be locked for good. | |
| gasFloor | No | The least gas the open call is sent with. | |
| position | No | ||
| recipient | No | Who collects the CHOP rewards and gets the LP back: the beneficiary. | |
| sendBefore | No | The Unix time in seconds the open call must land by (open stage only). | |
| beneficiary | No | ||
| recipientIsPayer | No | False when the beneficiary is not the signing wallet; the open call's label says so too. |