github solana-foundation/solana-go v1.27.0

latest release: v2.4.0
one hour ago

Highlights: a new confirmation package for lifetime-aware transaction confirmation (#526), a transaction introspection package (#523), p-token (SIMD-0266) support (#366), ws WaitSubscribed (#525), and new RPC methods GetAccountInfoMaybe (#473) and GetVatActiveSetRankMap (#536). No breaking API changes; minimum Go is still 1.26.

1.27.0 (2026-12-03)

Features

  • add CLAUDE.md and agent skills for AI-assisted development (#528) (d31a56b)
  • confirmation: add lifetime-aware transaction confirmation (#526) (3739688)
  • introspection: add transaction introspection package (#523) (0987418)
  • rpc: add GetAccountInfoMaybe for optional account lookups (#473) (73d47f7)
  • rpc: add GetVatActiveSetRankMap (#536) (4eb976a)
  • rpc: export jsonrpc.UseFixedID (#527) (11d49eb)
  • rpc: expose separate block rewards for stakers (#534) (42ef597)
  • token: add p-token (SIMD-0266) and missing SPL Token instructions (#366) (205ec59)
  • transaction: allow caller-supplied v1 sanitize limits (SIMD-0596) (#517) (a004d99)
  • ws: add WaitSubscribed and fix subscriptions that share a server id (#525) (046446c)

Bug Fixes

  • jsonrpc: match integer ids by value in RPCResponses.GetByID (#532) (e111e96)
  • message: honor resolved lookups in checkPreconditions (#522) (5fac633)
  • token-2022: send num_token_accounts in WithdrawWithheldTokensFromAccounts (#518) (a68eab8)
  • transaction: keep read-only signers after merged writable signers (#519) (043fe6b)
  • vote: bound decoded counts against remaining data (#529) (a2ac93d)
  • ws: return ErrNullResult for notifications without a result (#531) (5754d6e)

Behavior changes in ws

  • Closed subscriptions (#525): after a subscription is closed, Recv first returns any notifications that were already buffered, then returns an error that matches ws.ErrSubscriptionClosed via errors.Is and wraps the underlying cause (for example, the connection error).
  • Dead connections (#525): subscribing on a client whose read loop has already exited now fails immediately instead of blocking forever.
  • Shared server ids (#525): subscriptions of different methods that receive the same server-side subscription id no longer overwrite each other.
  • Null results (#531): a response or notification without a result now returns json2.ErrNullResult instead of panicking.

Note on lifetime-aware confirmation (#526)

rpc/sendAndConfirmTransaction now searches transaction history only when the status cache can no longer cover the transaction. If the node runs without --enable-rpc-transaction-history (RPC error -32011), it returns an error that wraps both sendAndConfirmTransaction.ErrTransactionHistoryNotAvailable and the original *jsonrpc.RPCError.

Thanks to everyone who contributed to this release: @sonicfromnewyoke, @hxuan190, @Laisky, @Iamsohungrynow, @lunargon, @rhmatzeka, @lopeselio, @AmanBoronbaev and @parthod0x!

Don't miss a new solana-go release

NewReleases is sending notifications on new releases.