solana-kit

Build Solana transactions, signers, and RPC clients with the @solana/kit TypeScript SDK.

1|1|Updated May 21, 2026
One-click install
npx skills add https://github.com/naruto11eth/cryptoskills --skill solana-kit-naruto11eth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-kit
Source: https://github.com/naruto11eth/cryptoskills/tree/main/skills/solana-kit
Command: npx skills add https://github.com/naruto11eth/cryptoskills --skill solana-kit-naruto11eth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @solana/kit, @solana-program/system, @solana-program/token, @solana-program/compute-budget, and includes references (resource) components.

What problem does it solve? Developers building Solana applications in JavaScript or TypeScript often rely on outdated web3.js 1.x patterns, hallucinated APIs, or incorrect transaction construction, leading to failed transactions and wasted debugging time. This Skill provides accurate, current guidance for @solana/kit, the modern zero-dependency SDK from Anza. ## Core Features & Use Cases - Transaction Building with Pipe: Construct versioned transactions using functional composition with fee payers, blockhash lifetimes, compute budgets, and address lookup tables. - Signers and Sending: Generate keypair signers, sign or partially sign transactions, and send with confirmation via HTTP and WebSocket RPC clients. - Account Fetching and Decoding: Fetch single or batched accounts and decode data with codecs, including SPL Token mint and token account structures. - Use Case: A developer needs to transfer SOL and create an SPL token on devnet. The Skill provides the exact imports, pipe-based transaction assembly, and send-and-confirm flow, plus a production-ready project template with retry logic and priority fees. ## Quick Start Ask the agent to write a TypeScript script using @solana/kit that transfers 0.1 SOL between two generated wallets on devnet.

Frequently Asked Questions about solana-kit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send a transaction with @solana/kit?

Build a transaction message with pipe by setting the fee payer, blockhash lifetime, and instructions, then call signTransactionMessageWithSigners and pass the result to sendAndConfirmTransactionFactory with your rpc and rpcSubscriptions clients.

What is the difference between @solana/kit and web3.js 1.x?

@solana/kit is a tree-shakeable, zero-dependency rewrite with functional composition instead of classes, native Ed25519 crypto, and roughly 10x faster signing. Use @solana/compat to convert legacy keypairs, public keys, and transactions to Kit types.

How do I decode a Solana account's data in TypeScript?

Fetch the account with fetchEncodedAccount, then decode its data using struct codecs from @solana/codecs such as getStructCodec with getU64Codec and getBytesCodec. Program packages like @solana-program/token also provide fetchMint and fetchToken helpers.

Why does my Solana transaction fail with blockhash not found?

The blockhash expired before confirmation, usually because signing or sending took too long. Fetch a fresh blockhash, rebuild the transaction, and retry; the Skill includes a retry helper that rebuilds on blockhash errors.

Does @solana/kit support WebSocket subscriptions?

Yes, createSolanaRpcSubscriptions connects over WebSocket and supports accountNotifications, signatureNotifications, slotNotifications, programNotifications, and logsNotifications, each consumed as an async iterator with an AbortController for cleanup.

How do I add priority fees to a Solana transaction?

Prepend compute budget instructions from @solana-program/compute-budget: getSetComputeUnitLimitInstruction for units and getSetComputeUnitPriceInstruction for microLamports. Prepending ensures the budget applies before your main instructions execute.