solana-kit

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

Updated Jul 10, 2026
One-click install
npx skills add https://github.com/Kaleb-Rupe/aurora --skill solana-kit-kaleb-rupe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-kit
Source: https://github.com/Kaleb-Rupe/aurora/tree/main/system/aurora-bridge/.claude/skills/solana-kit
Command: npx skills add https://github.com/Kaleb-Rupe/aurora --skill solana-kit-kaleb-rupe

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 versioned transactions with pipe, set fee payers, blockhash lifetimes, compute budgets, and address lookup tables. - Signing & Sending: Generate keypair signers, sign or partially sign transactions, and send with confirmation via RPC and WebSocket subscriptions. - Account Fetching & Decoding: Fetch encoded accounts, decode data with codecs, and work with SPL Token program instructions. - Use Case: Build a script that transfers SOL on devnet by creating an RPC connection, generating signers, piping a transfer instruction into a transaction message, signing it, and confirming on-chain. ## Quick Start Ask the AI 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 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 rewrite with functional composition instead of classes, native Ed25519 crypto, and full TypeScript types. The @solana/compat package converts legacy keypairs, public keys, and transactions to Kit types.

How do I create a signer from an existing private key in Solana Kit?

Use createKeyPairSignerFromBytes with a Uint8Array of the secret key. For base58 keys from Phantom, decode with bs58 first; for Solana CLI keypairs, parse the JSON array into a Uint8Array.

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 and rebuild the transaction, then retry; the skill includes a retry helper for this case.

Does @solana/kit support WebSocket subscriptions?

Yes, createSolanaRpcSubscriptions connects over WebSocket and supports account, slot, signature, program, logs, and root notifications. Subscriptions are consumed with async iterators and can be cancelled with an AbortController.

How do I reduce Solana transaction size with lookup tables?

Create and extend an address lookup table with @solana-program/address-lookup-table, fetch it with fetchAddressLookupTable, and attach it to a version 0 transaction using setTransactionMessageAddressLookupTable to compress account references.