Overview
Status model
Records move from prepared to broadcast, then to confirmed or failed. Kinds are transfer, swap, defi, approval, and other.
Overview
Every ledger transaction has a status. Apps and Cloud patch it as the send progresses. Valid values:
prepared— row exists; unsigned payload may be stored; not yet submitted on-chainbroadcast— submitted;txHashusually setconfirmed— final success;confirmedAtis set when you patch to this statusfailed— abandoned or reverted; keep hash/receipt for support when available
Kinds
kind classifies the intent for filters and UI. Allowed values: transfer, swap, defi, approval, other.
Typical flow
- Create with
status: "prepared"(default) after or before Cloud prepare. - Sign locally, then broadcast with
ledgerTxId, or PATCH yourself tobroadcast+ hash. - Poll Cloud receipt; when success, PATCH ledger to
confirmed(and optionalreceipt). - On hard failure (sim fail after you already created a row, abandoned send), PATCH to
failed.
Cloud note
Cloud prepare never creates a ledger row. Broadcast with ledgerTxId patches that row to broadcast; without it, Cloud may create a new row and return its id. Details: Link to Cloud broadcast.