seal_commit
Seal a completed effect by writing its tamper-evident certificate and closing the intent, enabling safe retries without duplicate charges. Call only with a valid fence after the admitted action has succeeded.
Instructions
Seal a successful effect: writes the tamper-evident certificate and closes the intent. Call it once, right after YOUR code ran the effect admitted by seal_admit (fresh=true). Only the fence holder may commit, and only once — a second commit, a wrong fence, or an expired lease is refused (isError). Returns the cert: hash, prev hash, state=sealed. If the effect failed before anything irreversible happened, call seal_abort instead; if you do not know whether it fired, call neither and leave the claim for a witness.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fence | Yes | The fence token returned with fresh=true from seal_admit. Proves you are the one caller admitted for this intent; refused if it is not yours or the claim was reclaimed. | |
| intent | Yes | The intent id returned by seal_admit / seal_propose (also `intent` on any cert). Identifies one logical action. | |
| result | Yes | The effect's result as returned by the provider (e.g. the charge object). Digested into the cert; keep it small. |