hook_dry_run
Perform a static check to determine if a hook matches a transaction type (HookOn) and list exit calls in its WASM bytecode, without execution.
Instructions
Quick STATIC check: does this hook fire on a given transaction type (HookOn match) and what exit calls does its WASM contain? Labelled STATIC_ONLY. For REAL bytecode execution use execute_hook. 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": {
"hookOn": "<hookOn>",
"candidateTxType": "<candidateTxType>"
},
"name": "hook_dry_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hookOn | Yes | ||
| wasmHex | No | ||
| wasmBase64 | No | ||
| candidateTxType | Yes | e.g. "Payment" |