encode_hook_can_emit
Build a canonical HookCanEmit hex from transaction types a hook may emit; omit to allow any transaction.
Instructions
Build a canonical HookCanEmit hex from the list of transaction types a hook should be allowed to emit (HookCanEmit amendment; same encoding as HookOn). Omit the field entirely on the SetHook to allow emitting anything. 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_can_emit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txTypes | Yes | e.g. ["Payment","Remit"] |