
⛓️ Blockchain & Web3 · Sequence
How an exchange processes a crypto withdrawal safely: balance hold, 2FA, risk and address screening, signing, broadcast and confirmations.
Drawing diagram…
Crypto withdrawal: the user requests a withdrawal of 0.5 ETH to an address and confirms with 2FA. The wallet service asks the ledger to hold the amount, asks compliance to screen the address, signs the transaction with the hot wallet signer (HSM), broadcasts it to an Ethereum node and waits for 12 confirmations, then marks the withdrawal complete and releases the hold as spent.
sequenceDiagram
actor U as User
participant W as Wallet Service
participant L as Ledger
participant C as Compliance
participant S as HSM Signer
participant N as Ethereum Node
U->>W: Withdraw 0.5 ETH to address, with 2FA code
W->>L: Hold 0.5 ETH
L-->>W: Held
W->>C: Screen address and amount
C-->>W: Cleared
W->>S: Sign transaction
S-->>W: Signed transaction
W->>N: Broadcast
N-->>W: Transaction hash
loop Until 12 confirmations
W->>N: Check confirmations
end
W->>L: Mark hold as spent
W-->>U: Withdrawal completeThe main parts of a centralised crypto exchange: a matching engine, wallets split between hot and cold storage, deposits and withdrawals, and compliance checks.
How an NFT marketplace works: listings signed off-chain, metadata on IPFS, and sales settled by a marketplace smart contract.
How a team safely upgrades a smart contract behind a proxy: audit, testnet rehearsal, multi-signature approval and a timelock before the change goes live.
The states a blockchain transaction goes through from signing to final confirmation, including replacement and dropped transactions.
How a custodian separates internet-connected hot wallets from offline cold storage, with signing hardware and an air-gapped transfer process.
Where a decentralised app's parts run: frontend on IPFS, contracts on a layer-2 chain, and supporting services like RPC providers and an indexer.