Design Withdrawal Processing With Hot and Cold Wallets
Last updated: November 29, 2026
Quick Overview
Design how customer crypto withdrawals are risk-checked, queued, batched, signed and broadcast, keeping most funds in cold storage while meeting withdrawal latency targets.
Coinbase
November 29, 20260
0
0 solved
Design how customer crypto withdrawals are risk-checked, queued, batched, signed and broadcast, keeping most funds in cold storage while meeting withdrawal latency targets.
Coinbase is known for its custody model, with most assets offline and a small hot float. Interviewers want to see a secure pipeline where signing keys are isolated, every step is idempotent, and you can explain how the hot wallet is refilled and how stuck transactions are handled.
What the Interviewer Expects
- Ledger hold placed before any on-chain action
- Risk and compliance checks (velocity, address screening, 2FA, allowlists) as a gating stage
- Durable job queue with per-chain workers and idempotent state machine
- Signing in an isolated service or HSM/MPC with policy enforcement
- Hot wallet thresholds and cold storage refill flow
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 handle a transaction stuck in the mempool because the fee was too low?
- How do you batch withdrawals on Bitcoin and what are the risks?
- What happens if a broadcast succeeds but your service crashes before recording it?
- How would an attacker try to drain the hot wallet, and what stops them?
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
Users request withdrawals of any supported asset to an external address. Target: most withdrawals broadcast within minutes, larger ones may take longer. No double sends, no sends without a matching le...
High-Level Design
API creates a withdrawal record (state REQUESTED) and places a ledger hold. A risk service evaluates it: amount versus limits, address screening against sanctions lists, account security signals; outc...