encode_hook_on
Build a canonical HookOn hex string from a list of transaction types, enabling offline specification of which transactions fire the hook.
Instructions
Build a canonical HookOn hex from a list of transaction types to fire on. Offline.
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": {
"txTypes": "<txTypes>"
},
"name": "encode_hook_on"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txTypes | Yes | e.g. ["Payment","Invoke"] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| hookOn | No | ||
| firesOn | No |