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.
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 |