Design Deposit Detection and Crediting Across Many Blockchains

Last updated: November 29, 2026

Quick Overview

Design the pipeline that watches dozens of blockchains for deposits to customer addresses, waits for the right number of confirmations, credits balances exactly once and handles chain reorganizations.

Coinbase
System Design
Software Engineer
Coinbase
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the pipeline that watches dozens of blockchains for deposits to customer addresses, waits for the right number of confirmations, credits balances exactly once and handles chain reorganizations.

Coinbase supports a long list of networks with very different finality rules, and a missed or double-credited deposit is a direct financial loss. The interviewer checks how you index chains, map addresses to users, define per-chain confirmation policy and survive reorgs and node failures.

What the Interviewer Expects
  • Per-chain indexer that follows blocks and tracks the canonical chain
  • Address-to-account lookup for millions of deposit addresses
  • Confirmation thresholds per asset, based on finality and risk
  • Exactly-once crediting through idempotent ledger postings keyed by tx and output
  • Reorg detection and rollback of unconfirmed state
Key Topics to Cover
storage and data pipelines
blockchain indexing
idempotency
reorgs
stream processing
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you handle a reorg deeper than your confirmation threshold?
  • How do you support account-based chains versus UTXO chains in one pipeline?
  • How would you credit faster for trusted customers without increasing risk?
  • How do you backfill after an indexer was down for six hours?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Detect every incoming transfer to a customer deposit address on supported chains, including token transfers, show a pending deposit quickly, and credit spendable balance after confirmations. Latency: ...

High-Level Design

For each chain, a fleet of our own nodes plus a fallback provider. A chain follower reads blocks in order and stores block headers with parent hashes. A normalizer turns each block into transfer event...


Submit Your Answer
Markdown supported