HD Wallet Deposit Sweeping

From per-user derivation to confirmed credit and a batched sweep to cold storage

HD Wallet Deposit Sweeping From per-user derivation to confirmed credit and a batched sweep to cold storage 01 / Key Derivation 02 / User + Chain 03 / Deposit Watcher 04 / Ledger 05 / Treasury EX / Gas Funding Assign Detect + confirm Credit + sweep Master Seed · BIP-39 mnemonic · Key Derivation › Assign · cold / HSM Master Seed BIP-39 mnemonic cold / HSM Derive Address · BIP-32 / BIP-44 · Key Derivation › Assign · m/44'/60'/0' Derive Address BIP-32 / BIP-44 m/44'/60'/0' User Deposits · on-chain send · User + Chain › Detect + confirm User Deposits on-chain send Detect Tx · watch set · Deposit Watcher › Detect + confirm Detect Tx watch set Confirm · N blocks · Deposit Watcher › Detect + confirm · reorg-safe Confirm N blocks reorg-safe Credit Balance · double-entry · Ledger › Credit + sweep Credit Balance double-entry Sweep to Cold · batched, signed · Treasury › Credit + sweep Sweep to Cold batched, signed Gas Funding · account chains · Gas Funding › Detect + confirm Gas Funding account chains seen final eligible needs gas top-up Legend User UI Agent logic Policy Tool action Context / trace

One Seed, Many Addresses

  • • A single BIP-39 seed derives every user address deterministically
  • • Derivation paths (m/44'/coin'/account') isolate users and chains
  • • Only the xpub lives on hot infrastructure; the seed stays cold

Confirmation Is Truth

  • • A mempool sighting is a hint, not a credit
  • • Balance is credited only after a chain-specific block depth
  • • Confirmation depth is tuned to reorg risk per chain

Sweeping Safely

  • • Sweeps batch many deposits into few treasury transactions
  • • Account chains need a gas top-up before a sweep can broadcast
  • • Destination is a cold or treasury wallet, never a hot key