Skip to main content

Ledger Data

Ledger Data lets an integration answer a holder list, a transfer history, or a compliance check with one query, instead of decoding chain events itself.
Reads answer from the record, up to a stated point.The ledger network is the authority for what happened. The platform reads each block once, in order, and decodes the events inside it into business records: holdings, transfers, fees, and compliance state. Those records and that block's progress point commit together in one step, or neither commits, so the progress point never runs ahead of the committed records. The committed progress point states how far the record can be trusted, and every platform read answers from at or below that point rather than from the live network.Reads answer from the record, up to a stated point.The same figure as the desktop variant, drawn portrait for phone widths: block 41, block 42, block 43, and still arriving sit as four peers in a grid, feeding down into decoded records, the records and the progress point commit together, and every platform read answers at or below that point rather than from the live network.

Records and the progress point commit together, and every read answers at or below that point.

  • The record holds business data, not raw chain data: who holds what, every transfer, every fee, already decoded, so a holder list or a year of transfers costs one database query rather than a walk of the chain.

  • The index carries a progress point for each network, the last block it has fully recorded, and answers nothing past it. A batch's records and its progress point commit in one database transaction, so a read answers from committed batches only.

  • When a network replaces recent blocks, the index deletes the records above the fork and replays the canonical chain, so the same blocks produce the same figures under the same recording rules.

Why an indexed record matters

Ledger Data lets you answer a business question about a ledger network with one query, instead of decoding its blocks and events yourself. It keeps a record of every network the platform follows, current as blocks arrive, organised into holdings, transfers, and the other records a network node's raw events do not carry on their own.

You can ask who held a security on 31 March, every transfer for one holder across a tax year, or whether an address was on the investor register when a transfer settled. Answering these from raw chain events needs event decoding and historical reconstruction. Ledger Data does that work for the contract types the platform knows.

Every stage of an instrument's life, from a primary sale through a coupon payment to a delivered trade, reads this one record, so no stage keeps its own decoder that the others must trust. Asset Lifecycle describes those stages.

Ledger Data also removes the risk of a wrong number returned with confidence. A balance that omits a transfer restored after a chain reorganisation, or a fee total that counts a corrected block twice, becomes a finding as soon as someone checks the chain.

Ledger Data corrects by deletion and replay rather than editing figures in place. Once any rebuild finishes, the same query over the same blocks returns the same result, so historical balances can be re-queried and checked against the chain. The historical balances token feature is the on-chain counterpart, checkpointing balances and total supply so record dates can be read on chain too.

Watching the index day to day

You watch Ledger Data. You do not operate it. It follows every network the deployment has enabled, and the number that matters is how far its progress point sits behind that network's newest block. Everything else on the monitoring surface explains why the gap is what it is.

The index normally follows the network head. It can also catch up, backfill a contract's earlier history, roll back a replaced block, or rebuild after a change to its records.

The index is always in one of five conditions.Following the network head is the steady state, with the progress point at the newest block. Four excursions leave it, each for a stated reason, and each returns when its work completes: catching up enters after a restart or when the network ran ahead and returns when the progress point reaches the head. Backfilling enters when a new contract owes its history and returns when that earlier history is complete. Rolling back enters when the network replaced a block and returns when the rollback and replay complete. Rebuilding enters when a release changed event recording and returns when the rebuilt copy swaps in.The index is always in one of five conditions.The same figure as the desktop variant, drawn portrait for phone widths: following the network head is the steady state, and the four excursions, catching up, backfilling, rolling back, and rebuilding, each leave it for a stated reason and return when their work completes.

The index either follows the head or is out on one of four excursions, and each excursion returns to following when its work completes.

The monitoring surface reports block lag, block age, distance ahead of the settled point, initial history completion, remaining contract backfill and active rebuilds. Lag and staleness each move the verdict through degraded then critical, changing only after consecutive samples agree so one slow block never flaps the board. The ledger indexing stalled runbook lists the thresholds and checks for distinguishing normal catch-up from stalled ingest.

You also control whether platform reads expose each discovered system on Indexing scope, system by system and network by network. The index keeps indexing every discovered system regardless. Excluding a system hides its data and deployed assets from reads without deleting anything, so re-including it needs no backfill.

A rebuild is the expensive case. When a release changes how an event is recorded, it declares a rebuild that reprocesses the network's full history into a replacement copy while existing reads keep serving from the current copy. Once caught up, the two copies swap in one step.

Historical figures for periods under rebuild remain provisional until the swap completes. Check upgrades and migrations to confirm a rebuild has finished, because a completed deployment rollout does not mean the rebuild has finished.

How the record stays correct

Ledger Data is a derived cache rebuilt from the ledger network's blocks, and nothing in it flows back to the network. Indexed API reads follow its progress and consistency rules, while operations requiring live network state make separate network calls.

One process holds the write lease for each network at a time, and every handover increments an ownership number stamped on progress writes. If a superseded owner finishes late, DALP rejects its entire batch rather than letting it advance progress.

The index reads each network in contiguous batches up to the head, halving batch width after repeated fetch failures and doubling it after three clean commits. Decoded records, progress point, block hashes for reorganisation checks and emitted change events commit in one database transaction, or none commit.

Progress tracks two axes: how far blocks have been read continuously, and how far back every discovered contract's history has been filled in. Reads use the stricter axis, holding back results until a newly discovered contract finishes its earlier history so half-filled contracts never appear.

Reads follow the stricter of two progress axes.The index tracks progress on two axes. One axis is how far it has read blocks in an unbroken run. The other is how far back it has filled in the history of every contract it discovered along the way, and a contract found in a recent block can still owe its earlier history, leaving a gap. Reads answer at or below the stricter of the two, so a half-filled contract never appears in a result.Reads follow the stricter of two progress axes.The same figure as the desktop variant, drawn for phone widths: the block-reading axis runs ahead while the contract-history axis, shorter on the same scale, still owes a gap, and reads answer at or below the stricter of the two.

Block reading can outrun contract backfill, leaving a gap, so reads answer from the stricter axis and a half-filled contract never appears in a result.

The index follows a network's newest block instead of waiting for finality, so records appear within processing time of each block. A network declares blocks settled through its native finality signal or a configured confirmation count.

Because recent blocks can be replaced, the index retains block hashes across a configured per-network window. Without an explicit setting, the window is the larger of the network's finality distance and 64 blocks: 65 on Ethereum, 200 on Polygon, 240 on Arbitrum, and 64 on Base, Optimism and other networks. A deeper window also delays webhooks waiting on finality.

Rollback walks stored hashes only, so the retained window sets a hard limit on automatic recovery. If a chain reorganisation reaches past the oldest retained hash, the network stops at its last indexed block until an operator recovers it. Setting the window deeper than finality wastes storage because finalised hashes are pruned anyway. Always review the window against your network's finality model.

Detection walks backwards from the last processed block comparing stored hashes against the network, catching same-height block replacements. On a fork, one database transaction deletes every record above the fork point, rewinds the progress point and retracts delivered change events, then replays the canonical blocks. If no stored hash matches, indexing stops for that network, logs the failure and leaves other networks running. See Beyond the window for recovery.

A replaced block is rolled back in one transaction and replayed.A block arrives whose hash disagrees with the one the index stored at that height. A replacement can sit at the same height, so only the hash reveals it. The index walks back comparing stored hashes against the network's, newest first, to the fork point, the newest block both still agree on. In one database transaction, or nothing, it deletes every record above the fork, rewinds the progress point, and retracts the change events it had already delivered. It then replays the canonical blocks from the fork forward, and the same blocks produce the same records a first pass would have.A replaced block is rolled back in one transaction and replayed.The same figure as the desktop variant, drawn portrait for phone widths: a hash disagreement, the walk back to the fork point, the one-transaction rollback, and the replay of the canonical blocks.

Detection compares hashes rather than heights, the rollback is one transaction, and the replay produces the same records a first pass would have.

Running totals are the one place the index waits. Instead of recomputing per query, it folds running totals forward only to the earlier of its progress point and the newest settled block so totals never need unfolding. Point-in-time reads carry no such delay because they recompute from rollback-safe records. Wallet valuation history is a point-in-time read computed on demand from each balance change and the asset price at that time.

The integration contract

An integration reads chain state from Ledger Data rather than querying the network directly. The Platform API serves holdings, transfer history, past-block balances and compliance state from the index, reserving live network calls for infrastructure checks and unindexed values.

Indexed read
Live network read
Returns
What happened, at any past block.
What holds true right now.
Cost
One database query.
One or more network calls.
Freshness
Current to the progress point.
Current to the newest block, replaceable.
Used for
Holdings, transfers, fees, yield, redemptions, compliance.
Infrastructure checks and values the index lacks.

Indexed reads scope results to the caller's organisation even on shared chains. On GET /api/v2/accounts, single-account reads and native-balance history, organisation owners, platform administrators and Permission manager, System manager, Auditor or Gas manager holders see organisation accounts, shared gas wallets and watched system accounts. All other callers see only their own wallets and identities, and other accounts return not found.

On-chain confirmation and indexed visibility are separate outcomes. A queued write using the indexer barrier waits for its block to become readable. If that wait expires, a retryable error identifies the transaction and reports that it succeeded on chain while indexed data is still catching up. Check that transaction's outcome before resubmitting.

Read the operation's Settlement Verdict for its recorded end state (completed, failed, dead letter or cancelled), then check the resource or indexing progress you need.

Discovery is automatic for known contract types: DALP finds new contracts through on-chain registries, backfills history from deployment and holds back results until backfill finishes. Unknown contracts, such as external tokens, stay invisible until registered and return empty results rather than errors. Past-block balances and derived daily figures are stored as events arrive, so history queries scale with the date range rather than full chain history.

DALP also pushes committed changes through Webhook Delivery, recording each event in the same database transaction as the indexed rows it describes. When a chain reorganisation removes the source block, DALP sends a retraction Platform Event naming the event it supersedes. Keep consumers idempotent and reconcile against indexed reads after rollbacks. See Post DALP events to a ledger for how accounting feeds post reversals.

What it evidences, and what it does not

Ledger Data is the evidence layer, while on-chain enforcement lives in Transfer-Path Compliance. It produces point-in-time holder registers, per-holder transfers with counterparties, and period aggregates for fees, exemptions, yield and redemptions. Each event stores both raw addresses and resolved identities so participant queries work by wallet or by party.

Two properties make the record defensible: repeatability and provenance. The same query over the same blocks returns the same figure, every correction comes from canonical chain deletion and replay rather than manual edits, and every figure carries its progress point.

Three limits belong in any control narrative:

  • Known contracts only. Unregistered external contracts do not appear until explicitly registered.
  • Chain scope only. Ledger Data holds nothing about custody provider books, external bridges or off-chain reserves.
  • Rebuild windows. When a release rebuilds derived figures, earlier periods stay live and incomplete until the swap finishes. Backwards-computed charts still draw a line during a rebuild, so check the monitoring surface for active rebuilds before treating historical figures as final.

Frequently asked questions

Is the index the source of truth?

No. The ledger network is the source of truth. The index is derived from it and can be rebuilt from its blocks. On-chain contracts enforce rules during execution, while API prechecks, reads and reports depend on indexed state.

What happens to a figure I already read if the chain reorganises?

The index corrects the figure at its source by deleting records above the fork point, rewinding progress, replaying canonical blocks and retracting delivered events from removed blocks. Your next read returns the corrected value. Reconcile against the indexed record after a rollback, noting that a reorganisation does not rewrite an operation's recorded verdict.

How far behind the network is the index?

Records usually appear within seconds of their block because the index follows the newest block rather than waiting for finality. Rollback and replay handle any reorganisation within the retained window. Running totals are the exception and fold forward only to the newest settled block.

Which clock dates an indexed figure?

The chain's clock, as far as the index has committed it. Date-bound reads compare chain dates against the newest committed block's timestamp, covering interest accrual periods, expired holds, lock-ups, time-locked batches, identity claims, bond maturity progress and yield periods. Networks running ahead of wall time or sitting idle therefore match on-chain evaluation.

Before the index dates its first block on a network, interest, dividend, yield, fixed-yield schedule and identity-claim checks return temporarily unavailable rather than guessing. Holds, lock-ups and time-locked batches count as active, and bonds show zero maturity progress.

Fixed-yield periods on token features are one exception: they close at the timestamp the next block will carry, so “Ready to claim” matches what a claim landing in the next block will execute.

Records written by DALP itself, such as audit trail entries and webhook attempts, use the server clock because they timestamp platform actions rather than chain blocks.

Charts of chain activity, such as supply over “last 30 days” or dashboard value history, end at the later of the server clock and the newest committed block, defaulting to the server clock before any block is dated. Portfolio profit-and-loss presets are the exception, ending strictly at the newest committed block. Charts of platform records, such as webhooks, API health and venue trades, follow the server calendar.

Do I need my own reconciliation between the index and the chain?

Yes. Reconcile DALP's records with your own books and keep transaction references for independent checks against the canonical chain. The index decodes events and handles rollbacks, but it does not replace your reconciliation policy.

Do reads fail when a network endpoint goes down?

No. Indexed reads serve committed database records, so they keep working through an endpoint outage. Progress pauses and block lag grows until monitoring marks the network degraded then critical. Once the endpoint recovers, the index catches up and new records appear.

Does the platform index every contract on the chain?

No. The index follows known contract types inside the on-chain estates operators choose to follow, keeping unrelated traffic out of read models and keeping indexing cost proportional.

Was this page helpful?