Skip to content
Docs

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-chain
  • broadcast — submitted; txHash usually set
  • confirmed — final success; confirmedAt is set when you patch to this status
  • failed — 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

  1. Create with status: "prepared" (default) after or before Cloud prepare.
  2. Sign locally, then broadcast with ledgerTxId, or PATCH yourself to broadcast + hash.
  3. Poll Cloud receipt; when success, PATCH ledger to confirmed (and optional receipt).
  4. 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.