Overview
When to use the Ledger API
Ledger for product-owned history and token metadata; Cloud for chain reads and unsigned preparation.
Overview
Use Ledger when you need durable, project-owned records that outlive a single prepare/broadcast call—and when you want a consistent token catalog for labels and decimals in your UI.
Prefer Ledger when
- You show users a send / swap history that you control (status, memo fields via
providerRefs, support lookup bytx_…id). - You create a row at
prepared, pass that id asledgerTxIdon Cloud broadcast, then patch throughconfirmedorfailed. - You resolve symbols and logos from the token registry instead of hard-coding metadata.
Cloud alone is enough when
- You only need balances, prices, or indexer activity—no product-owned lifecycle.
- You prepare, sign, and broadcast, and only need the returned
txHash/ receipt, without storing intermediate state yourself.
Prepare does not write Ledger
POST /v1/transactions/prepare on Cloud does not create a ledger row. Create the record yourself (or let broadcast create one when you omit ledgerTxId). See Link to Cloud broadcast.