Core pipeline

xchain-indexer

Validates every ACTION and maintains all token, DEX, and contract state.

Where it fits

Decoder Indexer Explorer

The pipeline's core: validates ACTIONs and runs the ledger, DEX, and VM; also pushes tips and prices to the Hub.

What it is

The indexer is the heart of the platform. It reads decoded ACTIONs, validates every field, runs the business logic (the double-entry ledger, the DEX matching engine, and the smart-contract VM), and writes the final, authoritative state.

How it fits into the platform

The second pipeline stage: it reads from the decoder database, writes the indexer database the explorer serves, and pushes chain tips and prices to the hub. It embeds the VM, so contract execution happens right alongside token accounting.

What it can do

  • Routes each ACTION to one of 36 validated handlers
  • Maintains a double-entry ledger with per-issuance supply sanity checks
  • Runs the DEX matching engine for ORDER and SWAP
  • Executes smart contracts in the sandboxed VM
  • Commits each block atomically and rolls back cleanly on reorg

Under the hood

  • MariaDB indexer DB (60+ tables)
  • Embeds the xchain-vm engine
  • Per-block chained SHA-256 hashes for verifiability
  • Watchdog auto-restart; one instance per chain/network

← All components