Solana Web3.js 2.0 introduces a host of modern JavaScript features and improvements. Key highlights include tree-shakability and reduced bundle sizes, making it a significant upgrade for developers. In our recent article we explore what the new Web3.js 2.0 SDK has to offer, including:
1. Performance Improvements
Faster Cryptographic Operations: Keypair generation, transaction signing, and message verification are up to 10x faster, leveraging native Ed25519 cryptography APIs in modern JavaScript environments like Node.js and Safari 17
2. Smaller and Efficient Applications
Web3.js 2.0 is fully tree-shakable, allowing you to include only the parts of the library you use, minimizing your bundle size. Additionally, the new SDK has zero external dependencies, ensuring a lightweight and secure build.
3. Enhanced Flexibility
Developers can now create custom solutions by:
Defining RPC instances with custom methods
Using specialized network transports or transaction signers
Composing custom primitives for networking, transaction confirmations, and codecs
Read the full article here: https://www.helius.dev/blog/how-to-start-building-with-the-solana-web3-js-2-0-sdk