estimate_script_cost
Estimate a Kaspa script's compute cost before signing: get script units, compute-mass grams, share of the 500,000-gram block limit, and the minimum per-input compute budget to commit, helping avoid ExceededCommittedScriptUnits.
Instructions
Estimate a Kaspa script's compute cost: script units, compute-mass grams, share of the 500,000-gram block compute limit, and the minimum per-input compute budget to commit. Approximate; use it to size a compute budget before signing and to avoid ExceededCommittedScriptUnits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_hex | Yes | Script bytes as hex. |