Design a Crypto Withdrawal Pipeline Across Hot and Cold Wallets
Last updated: November 29, 2026
Quick Overview
Design the system that takes a customer's crypto withdrawal request through risk checks, approval, signing and broadcast, keeps most funds in cold storage, refills the hot wallet safely, and guarantees a withdrawal is never sent twice.
Gemini
November 29, 20260
0
0 solved
Design the system that takes a customer's crypto withdrawal request through risk checks, approval, signing and broadcast, keeps most funds in cold storage, refills the hot wallet safely, and guarantees a withdrawal is never sent twice.
Gemini built its reputation on security and regulated custody, with most assets kept offline and wallet infrastructure (Hyperdrive) shared by the exchange, custody and staking. This design round probes exactly-once money movement, key management and how security controls trade off against withdrawal speed.
What the Interviewer Expects
- Model the withdrawal as a persisted state machine with idempotency keys
- Place holds on the ledger before anything touches the chain
- Separate hot wallet signing (HSM, limits) from cold storage (multi-party, offline, slow)
- Design hot wallet sizing and refill as a controlled, audited process
- Handle stuck and replaced transactions, fee spikes and chain reorgs
- Include risk checks: allowlisted addresses, new-device holds, sanctions screening
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 avoid a double send if the signer crashes after broadcast but before recording?
- How would you size the hot wallet for each asset?
- How do UTXO chains and account chains (nonces) change the design?
- How would an institutional custody client's approval quorum fit in?
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: request, risk review, approval, sign, broadcast, confirm, notify; support dozens of chains. Non-functional: never double spend or double send; most withdrawals done in minutes; cold funds ...
High-Level Design
Withdrawal service stores a row per request keyed by a client idempotency key and moves it through REQUESTED -> HELD -> RISK_OK -> APPROVED -> SIGNED -> BROADCAST -> CONFIRMED (or REJECTED/`FA...