// open-source block explorers
Read the chain.Read the code.
Altscan is one open-source engine behind two independent explorers. Below, the blocks they are indexing right now. Further down, the code that indexes them.
Blocks being indexed right now
// anatomy of a block
One real block,
taken apart.
ethereum · block
#—
- hash
- —
- fee recipient
- —
- time
- —
- transactions
- —
- gas used
- —
Header
Number, hash, who produced it and when, exactly as the chain recorded them.
ethscan.io/blocks ↗Transactions
Each with its receipt, logs and status. The receipts are checked against the block before anything is written.
ethscan.io/txs ↗What Altscan derives
Token transfers, DEX trades, whale movements and webhooks, written from the receipts and safe to replay.
ethscan.io/dex ↗
Every explorer also has address pages with token and NFT holdings, token pages, contract verification through Sourcify, network charts and a REST API with keys and webhooks.
// two explorers, live today
Same engine.
Each on its own domain.
- latest block
- —
- last 30 sec
- —
- status
- —
- latest block
- —
- last 30 sec
- —
- status
- —
More chains are on the way, and each is announced on GitHub first.Watch the repo ↗
// read the code · AGPL-3.0
The whole engine,
to scale.
All 44,639 lines of TypeScript in its apps and packages are public: read them, fork them, run your own. Left to right, the code a block passes through, from its chain's entry in chain-config to the explorer page that shows it.
- chain-config 514
- providers 2,433
- indexer 15,206
- db 721
- explorer-core 512
- explorer 20,324
- admin 2,703
- altscan-site 1,005 (this page)
- status 488
- settings-schema 628
- types 105
// or run your own
Postgres, Redis, the indexer and an explorer, from the repository's compose file. No configuration to start.
git clone https://github.com/heathermhuang/altscancd altscan && cp .env.docker.example .envdocker compose up -d