solana-kit

Original🇺🇸 English
Translated

Solana Kit (JavaScript SDK) — RPC, signers, transactions, accounts, codecs, instruction plans, and program clients for agent-driven Solana tooling.

6installs
Added on

NPX Install

npx skill4agent add hairyf/blockchain-skills solana-kit

Tags

Translated version includes tags in frontmatter
Skill based on Kit (anza-xyz/kit), generated 2026-02-25.
Concise reference for building Solana apps with Kit: functional API, tree-shakeable imports, RPC + RPC Subscriptions, signers, transaction messages, account fetch/decode, codecs, and program clients.

Core References

TopicDescriptionReference
SetupInstall, RPC/RPC Subscriptions, typed clientcore-setup
RPCHTTP client — getBalance, getAccountInfo, getLatestBlockhash, sendcore-rpc
RPC SubscriptionsWebSocket — accountNotifications, slotNotificationscore-rpc-subscriptions
Functionalpipe(), pipeline transformscore-functional
SignersKeyPairSigner, airdrop, wallet swap, no-opcore-signers
Transactionspipe, fee payer, lifetime, instructions, sign, send-and-confirmcore-transactions
Transaction confirmationBlock height exceedence, recent signature, nonce invalidation, timeoutcore-transaction-confirmation
AccountsfetchEncodedAccount, program fetch/decode (fetchMint, decodeMint)core-accounts
Address lookup tablesfetchLookupTables, compress message, decompile with lookupscore-address-lookup-tables
AddressesAddress type, validation, PDA derivation, codecscore-addresses
SysvarsFetch/decode Clock, Rent, EpochSchedule, etc.core-sysvars

Features

TopicDescriptionReference
InstructionsProgram clients — System, Token, Compute Budgetfeatures-instructions
Instruction plansSequential/parallel plans, planner, executorfeatures-instruction-plans
CodecsEncode/decode structs, program getXCodecfeatures-codecs
Compatible program clients@solana-program/*, Codama-generated clientsfeatures-compatible-clients
Compat (Web3.js)fromLegacyPublicKey, fromLegacyKeypair, fromVersionedTransactionfeatures-compat
ErrorsSolanaError, isSolanaError, contextfeatures-errors
GraphQLcreateSolanaRpcGraphQL, nested queries, caching/batchingfeatures-graphql
Key pairsgenerateKeyPair, import bytes, polyfillfeatures-keypairs
Offchain messagesBuild, sign, verify, encode/decode (sRFC 3)features-offchain-messages
Program errorsisProgramError — attribute tx failure to program/codefeatures-program-errors
ReactuseSignIn, useWalletAccountTransactionSigner, useSignAndSendTransactionfeatures-react
RPC transportsCustom transport — failover, retry, round-robin, shardingfeatures-rpc-transports
RPC API augmentationmainnet/devnet, cherry-pick methods, custom RPC methodsfeatures-rpc-api-augmentation
Create Solana programpnpm create solana-program, Codama-generated JS clientfeatures-create-solana-program
Unstable subscriptionscreateSolanaRpcSubscriptions_UNSTABLE, block/slotsUpdatesfeatures-unstable-subscriptions

Best practices

TopicDescriptionReference
Abort RPC/subscriptionsAbortController, timeout, cancel on navigationbest-practices-abort-rpc
Tree-shakingNarrow imports, sub-packages, smaller bundlesbest-practices-tree-shaking
Upgrade from Web3.jsConnection → RPC, PublicKey → address, compatible clientsbest-practices-upgrade