Multi-Chain Indexer for Detecting Deposits to Millions of Addresses
Last updated: November 29, 2026
Quick Overview
Design an indexing system that watches more than a hundred blockchains, detects every transfer to or from any of millions of custodial addresses within seconds of a block, tracks confirmations and reorgs, and feeds balances, the ledger and client notifications.
BitGo
November 29, 20260
0
0 solved
Design an indexing system that watches more than a hundred blockchains, detects every transfer to or from any of millions of custodial addresses within seconds of a block, tracks confirmations and reorgs, and feeds balances, the ledger and client notifications.
A multi-coin custodian like BitGo must support UTXO chains, EVM chains with tokens and internal transfers, and newer chains with their own data models, all with consistent semantics for clients. The round checks how a candidate builds a common abstraction over very different chains and keeps it correct and fast.
What the Interviewer Expects
- Uses per-chain adapters that normalise blocks into a common transfer schema
- Matches addresses efficiently (sets or Bloom filters) at millions of addresses
- Handles UTXO, account, token and internal call transfers
- Has a reorg-aware block pipeline with checkpoints and backfill
- Runs its own nodes with redundancy and cross-checks
- Separates ingestion from downstream consumers via a durable log
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you detect ERC-20 transfers and internal ETH transfers from contract wallets?
- How would you add a new chain in under a week?
- How do you know your indexer has not silently missed a block?
- What changes for chains with sub-second blocks?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: for each supported chain, emit normalised Transfer events (chain, txid, log index or vout, from, to, asset, amount in base units, block height and hash, status) for any address we custod...
High-Level Design
Per chain: two or more self-hosted full nodes (archive where needed) behind a node gateway. A block follower polls or subscribes for new heads, fetches full blocks with receipts or traces, and passes ...