- Fix issue with CJS import of Anchor's
NodeWalletto use the correctWalletclass exported - Fixed type errors on
ArrayBuffers andUint8Arrays
- Added
sendVersionedTransaction()to send a versioned transaction with lookup tables. Also adds priority fee support. - Added
createLookupTable()to easily create a lookup table and extend it with additional addresses - Added
getIdlByProgramId()to fetch an IDL from a program on-chain - Added
getIdlByPath()to parse an IDL from a local file path - Added
getIdlParsedAccountData()to parse account data using an IDL - Added
parseAnchorTransactionEvents()to parse anchor transaction events using an IDL - Added
decodeAnchorTransaction()to decode a transaction completely using an IDL - Fixed account data parsing in
decodeAnchorTransaction()
- Added
sendTransaction()to send transactions with compute unit optimization and automatic retries. - Removed
sendTransactionWithRetry()assendTransaction()is more convenient. - Fixed the node specific imports for the Anchor transaction helpers
- Added Transaction send helpers.
prepareTransactionWithCompute()andsendTransactionWithRetry() - Added Transaction Parser helper functions
getIdlParsedAccountData(),parseAnchorTransactionEvents()andgetIdlParsedInstructionData() - Fixed
createAccountsMintsAndTokenAccounts()function to use correct commitment and notmaxblockhash - Fixed
confirmTransaction()to not use correct commitment
- Add
makeTokenMint() - 2.5.4 includes a few fixes to build system and TS types that were missing in earlier 2.5.x releases
- 2.5.6 includes a fix for esm module post-build script
- Add
createAccountsMintsAndTokenAccounts()
Improved browser support by only loading node-specific modules when they are needed. Thanks @piotr-layerzero!
- Add
getSimulationComputeUnits()
- Add
initializeKeypair() - Change documentation to be task based.
- Breaking: Replace both
requestAndConfirmAirdropIfRequired()andrequestAndConfirmAirdrop()with a single function,airdropIfRequired(). See [README.md]! - Fix error handling in
confirmTransaction()to throw errors correctly. - Added
getLogs()function
- Added
getExplorerLink()
- Added
requestAndConfirmAirdropIfRequired()
- Now just
helpers. The oldnode-helperspackage is marked as deprecated. - Added
requestAndConfirmAirdrop() - Added
getCustomErrorMessage()
- Added
addKeypairToEnvFile()
Original release.