simulate_hook_trigger
Predict which accounts' hooks a transaction would invoke, with strong or weak roles, using only transaction fields. Works offline without bytecode execution or ledger reads.
Instructions
Statically predict which accounts' hooks a transaction WOULD invoke (transactional stakeholders), with strong (can rollback) vs weak (runs, can't rollback) roles — from the tx fields alone, no bytecode run and no ledger read. For tx types whose stakeholders require ledger-object lookups it returns a partial flag rather than guessing. For a full prediction that runs the real hook bytecode against live state, use simulate_transaction. 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": {
"tx": "<tx>"
},
"name": "simulate_hook_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | Yes | transaction JSON (needs at least TransactionType + Account) |