estimate_hook_state_cost
Compute owner-reserve cost for Hook State entries: provide value sizes and scale to get per-entry capacity, reserve units, overflow warnings, and minimum scale needed.
Instructions
Compute the owner-reserve cost of Hook State entries under ExtendedHookState. Given each entry's value size in bytes and the HookStateScale (1–16), returns per-entry capacity (256×scale bytes), per-entry reserve units (= scale, charged even for 1 byte), total reserve units, overflow warnings, and the minimum scale needed. Reserve UNITS are exact; pass ownerReserveIncrementXah to also get an XAH figure. 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": {
"entries": "<entries>"
},
"name": "estimate_hook_state_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| entries | Yes | ||
| ownerReserveIncrementXah | No | optional: your network's owner-reserve increment in XAH, to convert units → XAH |