Replication
xchain-sync
Replicates the chain so anyone can verify it independently.
Where it fits
Indexer
Sync
Independent replicas
Replicates chain state over snapshots and live streaming so anyone can verify it independently.
What it is
xchain-sync replicates decoder AND indexer databases to validators and consumers over REST snapshots and live WebSocket streaming, so independent parties can run their own verified replica of the chain state instead of trusting one server.
How it fits into the platform
It is the trust-minimization layer. Consumers can sync from two or more independent sources and cross-check per-block hashes to detect tampering.
What it can do
- Server and client modes
- Gzip full snapshots + incremental catch-up deltas
- Live WebSocket block and reorg streaming
- Cross-verifies per-block SHA-256 hashes from 2+ sources
- Reorg-aware rollback mirroring the indexer
Under the hood
- Same 77-table schema as the indexer
- One instance serves all chains; discovers indexers via the hub