solana-kit

📁 hairyf/blockchain-master 📅 1 day ago
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/hairyf/blockchain-master --skill solana-kit

Agent 安装分布

mcpjam 1
claude-code 1
replit 1
junie 1
windsurf 1
zencoder 1

Skill 文档

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

Topic Description Reference
Setup Install, RPC/RPC Subscriptions, typed client core-setup
RPC HTTP client — getBalance, getAccountInfo, getLatestBlockhash, send core-rpc
RPC Subscriptions WebSocket — accountNotifications, slotNotifications core-rpc-subscriptions
Functional pipe(), pipeline transforms core-functional
Signers KeyPairSigner, airdrop, wallet swap, no-op core-signers
Transactions pipe, fee payer, lifetime, instructions, sign, send-and-confirm core-transactions
Transaction confirmation Block height exceedence, recent signature, nonce invalidation, timeout core-transaction-confirmation
Accounts fetchEncodedAccount, program fetch/decode (fetchMint, decodeMint) core-accounts
Address lookup tables fetchLookupTables, compress message, decompile with lookups core-address-lookup-tables
Addresses Address type, validation, PDA derivation, codecs core-addresses
Sysvars Fetch/decode Clock, Rent, EpochSchedule, etc. core-sysvars

Features

Topic Description Reference
Instructions Program clients — System, Token, Compute Budget features-instructions
Instruction plans Sequential/parallel plans, planner, executor features-instruction-plans
Codecs Encode/decode structs, program getXCodec features-codecs
Compatible program clients @solana-program/*, Codama-generated clients features-compatible-clients
Compat (Web3.js) fromLegacyPublicKey, fromLegacyKeypair, fromVersionedTransaction features-compat
Errors SolanaError, isSolanaError, context features-errors
GraphQL createSolanaRpcGraphQL, nested queries, caching/batching features-graphql
Key pairs generateKeyPair, import bytes, polyfill features-keypairs
Offchain messages Build, sign, verify, encode/decode (sRFC 3) features-offchain-messages
Program errors isProgramError — attribute tx failure to program/code features-program-errors
React useSignIn, useWalletAccountTransactionSigner, useSignAndSendTransaction features-react
RPC transports Custom transport — failover, retry, round-robin, sharding features-rpc-transports
RPC API augmentation mainnet/devnet, cherry-pick methods, custom RPC methods features-rpc-api-augmentation
Create Solana program pnpm create solana-program, Codama-generated JS client features-create-solana-program
Unstable subscriptions createSolanaRpcSubscriptions_UNSTABLE, block/slotsUpdates features-unstable-subscriptions

Best practices

Topic Description Reference
Abort RPC/subscriptions AbortController, timeout, cancel on navigation best-practices-abort-rpc
Tree-shaking Narrow imports, sub-packages, smaller bundles best-practices-tree-shaking
Upgrade from Web3.js Connection → RPC, PublicKey → address, compatible clients best-practices-upgrade