npm @solana/web3.js 3.2.1
v3.2.1

3 hours ago

Full changelog: v3.2.0...v3.2.1

Published Packages

Installation

pnpm add @solana/web3.js@3.2.1 @solana/wallet-adapter@3.2.1

Highlights

@solana/web3.js

  • stackHeight on inner instructions: CompiledInnerInstruction.instructions elements now declare stackHeight?: number. The RPC already returned the field, so callers no longer need a cast to read it. (#4049)

    const tx = await connection.getTransaction(sig, {maxSupportedTransactionVersion: 0});
    tx?.meta?.innerInstructions?.[0].instructions[0].stackHeight; // number | undefined

Behavior changes

Breaking change in a patch release

getTransactionsForAddress no longer accepts encoding: 'base58'. We are shipping it as a patch because:

  • The method and the option both arrived in 3.2.0 four days ago, so very few projects are using this already.

  • Agave already rejects base58 when maxSupportedTransactionVersion is 1 or higher. base64 carries the same bytes at a lower cost.

  • Removing it now keeps new code on base64 and makes a later move to v1 transactions easier.

     await connection.getTransactionsForAddress(address, {
       transactionDetails: 'full',
    -  encoding: 'base58',
    +  encoding: 'base64',
     });
Maintenance (dependencies, CI, docs)

Security and dependency updates

  • Bump the minor-and-patch dev dependency group: oxfmt, oxlint, playwright, rollup, next, mocha, @types/* (#4043)
  • Bump the minor-and-patch dev dependency group: oxfmt, oxlint, playwright, vite, rolldown, rollup; dedupe @babel/runtime (#4047)

CI and tooling

  • Preview release notes before publish approval (#4042)
    • Type declarations are now bundled with Rolldown instead of Rollup. lib/index.d.ts has the same 402 exports, with the same names and targets, as before. The only differences are formatting and three dropped file-header comments. (#4051)

Release

Contributors

Don't miss a new web3.js release

NewReleases is sending notifications on new releases.