Repository navigation
Q&A on @solana/web3.js v3 #3826
Locked
amilz
started this conversation in
Web3.js v3
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Q: What’s Changing?
A: We rewrote the web3.js internals using @solana/kit. Though there are a couple of small breaking changes, we worked to preserve existing types and shapes, so migration from v1.9x to v3 should be straightforward. Specifics in the migration guide.
Q: Why are you releasing web3.js v3?
A:
@solana/web3.jsgets installed over 1.5M times per week (src: npm). We are releasing these changes to improve security and ecosystem client interoperability.This is achieved by:
Q: What is Solana Kit?
A: Kit (docs | GitHub) is a zero-dependency Solana SDK. It is designed to be more composable, customizable, and efficient than web3.js. Its functional design enables the entire library to be tree-shaken, drastically reducing your bundle size. It also takes advantage of modern JavaScript features — such as native Ed25519 key support and bigint for large values — resulting in an even smaller bundle, better performance, and most importantly, a reduced attack surface for your application.
Q: Why is this called v3 and not v2?
A: Kit was previously branded as web3.js v2. v3 skips that label to avoid SEO, AI/LLM, and user confusion.
Q: Should I migrate from Kit to v3?
A: No, you do not have to. If you're on Kit, stay on Kit.
Q: Should I upgrade my web3.js project today?
A: If your project depends on other libraries or many projects depend on your library, we’d encourage you to experiment with the release candidate so you can share feedback, however, for a full migration, we recommend waiting for a stable release.
Q: What about libraries like wallet adapter, Anchor, SDKs?
A: We know this change has cascading effects on other libraries that use/rely on web3.js. We plan to work with major ecosystem partners to help ready major libraries like anchor & wallet adapter before a stable release.
@solana-program/*SDKs for interacting w/ native Solana Programs like the Token Program.nextdist tag). See @anchor-lang/core on npm.Q: Are there any docs/skills for helping me migrate from v1.x to v3?
Yes.
Q: What is the Web3.js v3 Release Schedule?
A: v3 is live and installable via
npm install @solana/web3.js@3. Thelatestdist-tag will be applied in NPM ~October 19th, 2026.Q: Where can I track release notes/changes?
In this project's GitHub Releases.
Q: How do I install v3?
The latest version of the v3 can be installed with the
3ornexttag:The full RC version history is available on npm.
Q: What branch is the RC on?
A:
main: https://github.com/solana-foundation/solana-web3.jsQ: How do I give feedback on v3?
A: Open an Issue
All reactions