Custodial Wallet Backend
Custodial wallet infrastructure for exchanges and financial platforms: HSM key management (Hardware Security Module private keys never exposed in plaintext, signing happens inside the HSM AWS CloudHSM or Thales Luna HSM for institutional-grade key security), MPC (Multi-Party Computation private key split between multiple parties using threshold signature schemes, no single party holds the complete key, k-of-n threshold required for signing), transaction approval workflows (multi-signature approval for large transactions, time delays for unusual patterns, fraud detection integration), regulatory compliance (KYC/AML integration, travel rule compliance for transfers above thresholds, transaction monitoring, SAR filing process).
Non-Custodial Embedded Wallet
Embedded wallet infrastructure using managed SDK solutions: Privy (embedded wallet SDK email, social, or SMS login generates a non-custodial wallet, MPC-based key storage, no seed phrase for the user, supports EVM chains and Solana), Alchemy Account Kit (EIP-4337 smart contract wallets social login creates a smart wallet, gas sponsorship via Alchemy's paymaster, session keys, batch transactions), Dynamic.xyz (multi-chain embedded wallets with authentication combines traditional auth with Web3 wallet creation), integration pattern (embedded wallets created transparently when the user signs up users who are not crypto-native never see blockchain complexity).
Multi-Chain Wallet Support
Wallet functionality across multiple blockchain networks: EVM chains (Ethereum, Polygon, BNB Chain, Avalanche, Base, Arbitrum, Optimism single key pair works across all EVM chains), Solana (separate key pair, different address format, @solana/web3.js for Solana interactions), Bitcoin (UTXO model, different address formats P2PKH, P2SH, P2WPKH bitcoinjs-lib or bitcoin-core RPC), chain detection (display correct network, warn on wrong network, support chain switching), cross-chain portfolio (aggregate balances across all supported chains in unified portfolio view).
Transaction Management
Production transaction infrastructure: nonce management (track the nonce for each wallet address, increment correctly for sequential transactions, recover from nonce gaps after failed transactions), gas price estimation (use EIP-1559 base fee + priority fee estimation `eth_feeHistory` API for accurate gas pricing, configurable max fee and max priority fee), transaction broadcasting (submit transaction to the network via Alchemy or Infura, return transaction hash immediately, track confirmation status via WebSocket subscription or polling), transaction history (index historical transactions via Alchemy Transfers API or Etherscan API display full transaction history with token transfers, gas paid, and status).
Hardware Wallet Integration
Hardware wallet support for high-security users: Ledger (Ledger Live SDK detect device, connect via USB or Bluetooth, prompt for account selection, sign transaction with device), Trezor (Connect SDK web-based and mobile integration, transaction signing flow, device detection), integration pattern (application detects if user has a hardware wallet, offers option to connect instead of software wallet, routes signing requests through device).