Index of every page on this site: llms.txt
All skills
Run it yourself

Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my Solana program", "deploy to devnet", "send a v1 transaction", "support larger transactions", "fix maxSupportedTransactionVersion", or "explain Solana concepts" (rent, accounts, PDAs, CPIs). Also for program architecture (state layout, compute units, throughput, naming), quick on-chain lookups via public RPC + curl, gasless or sponsored-fee transactions (Kora), server-side signing with KMS/Turnkey/Privy/Fireblocks (Solana Keychain), and issuing stablecoins or allowlisted tokens (Mosaic). Covers wallets, Anchor/Pinocchio, Codama clients, Surfpool/LiteSVM/Mollusk testing, security review, and v1 transactions (SIMD-0385). Prefers @solana/kit 8 plugin clients building transaction v1 by default, @solana/kit-plugin-wallet + @solana/react for wallets, web3.js v3 as the legacy migration target, and Surfpool for local networks.

Use this Skill: https://skilld.dev/gh/solana-foundation/solana-dev-skill/solana-dev

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referenceskit-web3-interop.md

≈876 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Kit ↔ web3.js Interop

The landscape (2026)

@solana/web3.js v3 is a rebuild of the classic class-based API (Connection, Keypair, Transaction) on top of @solana/kit internals, co-developed by Blueshift and the Solana Foundation.

Status: stable. @solana/web3.js 3.0.0 shipped on 2026-10-01 (3.1.1 as of Oct 19) together with a new @solana/wallet-adapter 3.0 package. 3.1.x depends on @solana/kit ^8.5.0 (3.0.x on ^8.4.0). 3.x is now the latest dist-tag, so npm i @solana/web3.js installs it; a codebase that has to stay on 1.x pins @solana/web3.js@1. The v3 work now lives on the repo's main branch (the v3.x branch is gone; 1.x continues on maintenance/v1.x). Treat v3 as the migration target for v1 codebases, not a default recommendation for new work.

The 3.0.0 release notes list the breaking changes from 1.x. The ones that bite most: Keypair.generate() / fromSecretKey() / fromSeed() and Transaction.serialize() are async, Connection's implicit default commitment is now confirmed (was finalized), many Connection results are bigint and Uint8Array instead of number and Buffer, and getRecentBlockhash / FeeCalculator / the Account class are gone.

Decision routing

  1. Greenfield code → use @solana/kit + plugins directly. Don't add web3.js at all. See kit/overview.md.
  2. Migrating a v1 codebase → use the official migration skill. It is maintained alongside the source in the solana-web3.js repo and kept current with each release, so prefer it over hand-migrating from memory:
    npx skills add https://github.com/solana-foundation/solana-web3.js/tree/main/skills/web3js-v1-to-v3-migration
    (Or install from the repo and select it: npx skills add solana-foundation/solana-web3.js -s web3js-v1-to-v3-migration.) A companion guide in the same repo covers @solana/spl-token → @solana-program/token.
  3. Found @solana/web3-compat in a codebase → it is superseded (an interim shim running the v1 API on Kit 5). Do not introduce it in new work; plan a migration to v3 or Kit.
  4. A dependency expects v1 objects (Connection, sync Keypair) → upgrade the dependency or isolate it in an adapter module. Do not downgrade your app to v1, and do not let legacy class types leak across the app.

Why the boundary is cheap in v3

Because v3 is built on Kit, the seams are shared types rather than conversion shims:

  • PublicKey is a deprecated alias of v3's Address class.
  • A v3 Keypair structurally satisfies Kit's KeyPairSigner — it can be passed directly to Kit APIs, Kit plugins, and Codama-generated clients.

The migration skill covers the rest (async signing, bigint RPC numerics, removed APIs, commitment defaults).

References

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning18d5 checks · Risk SAFE
  • Gen Agent Trust Hub19d

    This skill is a legitimate and comprehensive developer resource for Solana blockchain development. It identifies and mitigates common security risks through explicit instructions on handling untrusted on-chain data and enforces transaction safety via user-review guardrails. All external dependencies and tool installations originate from trusted, official Solana ecosystem providers.

  • Socket18d

    No alerts

  • Snyk19d

    Risk: LOW · No issues

  • Runlayer8mo

    3/15 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c9da262. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 weeks ago
compatibility
Requires Node.js 20.18+, Rust toolchain, Solana CLI, Anchor CLI
metadata
{
  "author": "Solana Foundation",
  "version": "2.8.0"
}

README badge

README badge for solana-foundation/solana-dev-skill