Find a grant again from a transaction that spent it
warda_recover_grantRead a grant's full state back out of any transaction that spent it, and work out where it went. Use this when a grant's recorded state is stale, wrong, or lost and its address turns up empty. Kaspa's P2SH requires the covenant script to travel in the clear inside every spending transaction, and the grant's state is spliced into that script — so every spend publishes the grant it spent. Pass the transaction as wire JSON, or just the redeem script hex if that is all you have.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | Address prefix: kaspa, kaspatest, kaspasim or kaspadev. Defaults to kaspatest. | |
| transaction | No | A wire-format transaction that spent the grant. | |
| redeemScriptHex | No | The covenant script alone, if you have only that. |