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.
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": {
"account": "<account>",
"namespace": "<namespace>"
},
"name": "build_sethook_unsigned"
}
}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 |