solana-kit

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

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "solana-kit" with this command: npx skills add hairyf/blockchain-skills/hairyf-blockchain-skills-solana-kit

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

viem

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

ton

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

solana-anchor

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

solana

No summary provided by upstream source.

Repository SourceNeeds Review