solana-kit-migration

Analyzes codebases and guides migration from @solana/web3.js v1 to @solana/kit.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Migrating Solana JavaScript projects from @solana/web3.js (v1) to @solana/kit involves API rewrites, async keypair changes, BigInt conversions, and dependency blockers like Anchor that are hard to assess manually. ## Core Features & Use Cases - Migration Analysis: Scans a codebase with shell and Node scripts to count v1 patterns (Connection, Keypair, PublicKey, Transaction) and rates migration complexity as low, medium, or high. - API Mapping Reference: Provides side-by-side v1-to-Kit conversions for RPC calls, transaction building, signing, subscriptions, and PDAs. - Compatibility & Edge Cases: Documents which SDKs (Anchor, Metaplex, Jupiter, Orca) support Kit and covers gotchas like BigInt serialization, missing .send() calls, and AbortController-based subscriptions. - Use Case: A developer with an existing Solana dApp runs the analyzer, learns their project has 40 migration points and no Anchor dependency, then follows the API mappings to convert transaction-building code to Kit's pipe-based functional style. ## Quick Start Analyze my Solana project for @solana/kit migration readiness and show me how to convert the v1 patterns you find.

Frequently Asked Questions about solana-kit-migration

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

FAQPage Schema
How do I migrate from @solana/web3.js to @solana/kit?

Start by scanning your codebase for v1 patterns like new Connection(), Keypair.fromSecretKey(), and new Transaction(). Replace them with createSolanaRpc(), await createKeyPairSignerFromBytes(), and pipe-based transaction messages, adding .send() to all RPC calls.

Should I use @solana/kit or @solana/web3.js for a new project?

Use @solana/kit for new projects without Anchor dependencies, since it offers smaller bundles, faster confirmations, and stronger type safety. Stay on web3.js v1 if you depend on Anchor or SDKs that have not migrated yet.

Does Anchor support @solana/kit?

No, Anchor currently requires @solana/web3.js v1 and does not support Kit. For mixed codebases, use @solana/compat to convert between v1 PublicKey/Keypair types and Kit Address/KeyPairSigner types.

Why does my @solana/kit RPC call return a pending request object?

Kit RPC methods return a request builder, not the result, so you must append .send() to execute the call. Most responses are also wrapped, so destructure with const { value } = await rpc.getBalance(addr).send().

How do I handle BigInt errors when migrating Solana amounts?

Kit uses native BigInt for all lamport amounts, so write values like 1_000_000_000n or use the lamports() helper. Mixing number and bigint throws errors, and JSON.stringify requires converting bigints to strings first.

When should I not migrate to @solana/kit?

Avoid migrating when your project depends on Anchor, when critical SDKs like Metaplex or Raydium lack Kit support, or when a large stable codebase has hundreds of migration points without clear performance or bundle-size benefits.