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.
Recommended: create then pass ledgerTxId
- Create a ledger row (
prepared), keep_id(tx_…). - Prepare and sign via Cloud / SDK as usual.
- Broadcast with
ledgerTxIdset to that id. Cloud patches the row tobroadcastand stores thetxHash. - Poll receipt, then PATCH ledger to
confirmedorfailed(and optionalreceipt).
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.