Skip to content
Docs

Transaction records

Link to a Cloud API broadcast

Prepare does not write Ledger; broadcast can patch an existing tx_… via ledgerTxId.

Overview

Cloud prepare never creates a ledger row. Linking happens around broadcast.

  1. Create a ledger row (prepared), keep _id (tx_…).
  2. Prepare and sign via Cloud / SDK as usual.
  3. Broadcast with ledgerTxId set to that id. Cloud patches the row to broadcast and stores the txHash.
  4. Poll receipt, then PATCH ledger to confirmed or failed (and optional receipt).

If you omit ledgerTxId

Cloud may create a ledger row on broadcast and return ledgerTxId in the response. Useful for fire-and-forget; less control over the prepared phase.

Cloud docs

See Optional ledger record id and the full transaction lifecycle. End-to-end pattern: Track a send end-to-end.