Migrating to Web3.js v4: Modular Imports, Async Patterns, and the Hidden Costs
Web3.js v4 cuts bundle size by 80% and adds first-class TypeScript, but three silent breaking changes — missing @web3js/contract, BigInt block numbers, and removed batch requests — cause runtime failures TypeScript won't catch. The migration checklist that prevents production bugs.