solana-kit

Build, sign, and send Solana transactions using the @solana/kit TypeScript SDK.

Updated Jul 28, 2026
One-click install
npx skills add https://github.com/IagoPrandi/zeroclaw-plugin --skill solana-kit-iagoprandi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: solana-kit
Source: https://github.com/IagoPrandi/zeroclaw-plugin/tree/main/.claude/skills/solana-dev/ext/sendai/skills/solana-kit
Command: npx skills add https://github.com/IagoPrandi/zeroclaw-plugin --skill solana-kit-iagoprandi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers building Solana applications in JavaScript or TypeScript need correct, up-to-date patterns for the modern @solana/kit SDK, which differs significantly from legacy web3.js 1.x in its functional, tree-shakeable design. ## Core Features & Use Cases - Transaction Building: Compose version-0 transactions with pipe, set fee payers, blockhash lifetimes, compute budgets, and address lookup tables. - Signing & Sending: Generate keypair signers, sign or partially sign transaction messages, and send with confirmation via RPC and WebSocket subscriptions. - Account Fetching & Decoding: Fetch encoded accounts, decode data with codecs, and interact with System, SPL Token, Token-2022, and Compute Budget programs. - Use Case: A developer migrating from web3.js 1.x can follow the included patterns to rebuild a SOL transfer flow, add priority fees, and handle blockhash-expiry retries with full TypeScript type safety. ## Quick Start Ask the assistant to write a TypeScript script using @solana/kit that transfers 0.1 SOL between two newly 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 Solana 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 subscriptions clients.

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

@solana/kit is a tree-shakeable, zero-dependency, functional rewrite of web3.js with native Ed25519 crypto and TypeScript-first types. The @solana/compat package converts legacy keypairs, public keys, and transactions into Kit types for migration.

Does @solana/kit support address lookup tables and versioned transactions?▼

Yes, create a transaction message with version 0 and attach a fetched lookup table using setTransactionMessageAddressLookupTable. This reduces transaction size when referencing many accounts.

Why does my Solana transaction fail with blockhash not found?▼

The recent blockhash expired before confirmation, usually due to network delay. Rebuild the transaction with a fresh blockhash from getLatestBlockhash and retry, or use durable nonce transactions for non-expiring lifetimes.

How do I decode Solana account 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.