NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4918 most downloaded on npm
Core types and helpers for encoding and decoding byte arrays on Solana
Last release today
22 Sep 2026
Ships fairly regularly
a new release about every 8 days
Nearly every release is documented
notes for 38 of 38 stable releases
1 version withdrawn
withdrawn after publishing
3 years old
2262 releases · first in 2023
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per month.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
[@solana/instruction-plans] #1464 `a557a62` Thanks @lorisleiva! - Add the last 8 transaction log lines to the error message of SOLANA_ERROR__FAILED_TO
@solana/instruction-plans] #1464 a557a62 Thanks @lorisleiva! - Add the last 8 transaction log lines to the error message of SOLANA_ERROR__FAILED_TO_SEND_TRANSACTION and SOLANA_ERROR__FAILED_TO_SEND_TRANSACTIONS (when only one transaction failed).Nothing published for this version
[@solana/errors, @solana/instruction-plans] #1444 `f47d5cf` Thanks @lorisleiva! - Enrich the SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTI
@solana/errors, @solana/instruction-plans] #1444 f47d5cf Thanks @lorisleiva! - Enrich the SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_COMPUTE_LIMIT error context with the full simulation result (Omit<RpcSimulateTransactionResult, 'err'>) and add it to SolanaErrorCodeWithCause, aligning it with the SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE error.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
[@solana/codecs-data-structures] #1394 `3f4c5f0` Thanks @mcintyre94! - Adds new functions getPatternMatchEncoder, getPatternMatchDecoder and getPatter
[@solana/codecs-data-structures] #1394 3f4c5f0 Thanks @mcintyre94! - Adds new functions getPatternMatchEncoder, getPatternMatchDecoder and getPatternMatchCodec.
These can be used to write an encoder that switches between any number of encoders based on the value being encoded, or a decoder that switches between any number of decoders based on the byte array being decoded.
For example for the encoder, the input is a list of [predicate, encoder] pairs. Each predicate is a function from the value being encoded to true/false. The encoder used is the first one where its predicate is true.
[@solana/wallet-account-signer] #1415 587ede3 Thanks @mcintyre94! - Add new @solana/wallet-account-signer package that will contain functions for converting from Wallet Standard accounts on Solana chains, to Kit Signer objects.
[@solana/codecs-data-structures] #1420 5390602 Thanks @mcintyre94! - Enable pattern match encoder/codec to use type narrowing. This means that if your predicate narrows the type of the value, then the matching encoder only needs to handle the narrowed type.
This means that you can write, for example:
getPatternMatchEncoder<string | number>([
[value => typeof value === 'string', {} as Encoder<string>],
[value => typeof value === 'number', {} as Encoder<number>],
]);
[@solana/errors] #1440 0d0be3e Thanks @lorisleiva! - Append the instruction index to all instruction error messages (e.g. (instruction #1)) and add a human-readable message for unknown instruction errors.
[@solana/errors] #1432 7568a12 Thanks @lorisleiva! - Add SOLANA_ERROR__FAILED_TO_SEND_TRANSACTION and SOLANA_ERROR__FAILED_TO_SEND_TRANSACTIONS error codes for high-level transaction sending wrappers.
[@solana/errors] #1442 e33a65f Thanks @lorisleiva! - Remove stale $encodedData interpolation from the BORSH_IO_ERROR message. The encodedData context property was removed in v5.0.0 but the message template was not updated, causing the literal $encodedData to appear in the rendered error message.
[@solana/errors, @solana/instruction-plans] #1433 49c1195 Thanks @lorisleiva! - Add abortReason to the SOLANA_ERROR__INSTRUCTION_PLANS__FAILED_TO_EXECUTE_TRANSACTION_PLAN error context so consumers can access the abort reason when converting this error to higher-level error types.
[@solana/instruction-plans] #1435 98a8869 Thanks @lorisleiva! - Add createFailedToExecuteTransactionPlanError factory helper for custom transaction plan executor authors and refactor the built-in executor to use it.
[@solana/instruction-plans] #1434 79db829 Thanks @lorisleiva! - Add createFailedToSendTransactionError and createFailedToSendTransactionsError factory helpers that create high-level SolanaError instances from failed or canceled transaction plan results, with unwrapped simulation errors, preflight data, and logs in the error context.
[@solana/sysvars] #1428 b28b843 Thanks @datasalaryman! - use internals codecs dependencies
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
[@solana/codecs-data-structures] #1363 `70b1ed8` Thanks @mcintyre94! - Adds new functions getPredicateEncoder, getPredicateDecoder and getPredicateCod
[@solana/codecs-data-structures] #1363 70b1ed8 Thanks @mcintyre94! - Adds new functions getPredicateEncoder, getPredicateDecoder and getPredicateCodec.
These can be used to write an encoder that switches between two encoders based on the value being encoded, or a decoder that switches between two decoders based on the byte array being decoded.
[@solana/codecs-data-structures] #1369 7ce7545 Thanks @mcintyre94! - Allow passing a description to array and tuple encoders and codecs
ArrayCodecConfig is extended with an optional descriptionTupleCodecConfig with an optional descriptionSOLANA_ERROR__CODECS__INVALID_NUMBER_OF_ITEMS when encoding, the codecDescription field will be the description passed in the config. If no description is included then they will continue to default to array and tuple respectively.[@solana/instruction-plans] #1334 1f6cd4b Thanks @lorisleiva! - Add parseInstructionOrTransactionPlanInput helper that converts flexible inputs (instruction plan input or transaction plan input) into an InstructionPlan or TransactionPlan
[@solana/instruction-plans] #1332 50010b5 Thanks @lorisleiva! - Add parseInstructionPlanInput helper that converts flexible inputs (single instruction, instruction plan, or array) into an InstructionPlan
[@solana/instruction-plans] #1333 33234f5 Thanks @lorisleiva! - Add parseTransactionPlanInput helper that converts flexible inputs (single transaction message, transaction plan, or array) into an TransactionPlan
[@solana/kit] #1356 da61429 Thanks @lorisleiva! - Add @solana/kit/program-client-core as a subpath export for @solana/program-client-core without changing root @solana/kit exports.
[@solana/plugin-interfaces] #1339 ee558a1 Thanks @lorisleiva! - Add @solana/plugin-interfaces package with TypeScript interfaces for building pluggable Solana clients. Includes ClientWithPayer, ClientWithAirdrop, ClientWithRpc, ClientWithRpcSubscriptions, ClientWithTransactionPlanning, and ClientWithTransactionSending interfaces.
[@solana/program-client-core] #1345 d3314a6 Thanks @lorisleiva! - Add new @solana/program-client-core package containing types and utilities for building Solana program clients. This is mainly used by the JavaScript Codama renderer to generate Kit-compatible program clients.
[@solana/errors] #1344 3f711e1 Thanks @lorisleiva! - Add new error codes for program clients: SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE, SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION, SOLANA_ERROR__PROGRAM_CLIENTS__UNEXPECTED_RESOLVED_INSTRUCTION_INPUT_TYPE, and SOLANA_ERROR__PROGRAM_CLIENTS__RESOLVED_INSTRUCTION_INPUT_MUST_BE_NON_NULL.
[@solana/errors] #1366 215027c Thanks @lorisleiva! - Add two new SolanaError codes for program clients: SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_ACCOUNT_TYPE and SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →