build_sethook_unsigned
Assemble an unsigned SetHook transaction from CreateCode and parameters, with preflight analysis and critical findings flagged. Returns unsigned JSON for offline signing, testnet by default.
Instructions
Assemble an UNSIGNED SetHook transaction from CreateCode + params, auto-running analyze_hook as preflight and flagging CRITICAL findings. Returns unsigned JSON + offline signing instructions. Never signs; testnet by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | ||
| grants | No | ||
| hookOn | No | ||
| account | Yes | ||
| network | No | testnet | |
| txTypes | No | ||
| wasmHex | No | ||
| namespace | Yes | 32-byte HookNamespace hex | |
| parameters | No | ||
| createCodeHex | No |