> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Migrating to Kit

> How @solana/web3.js and wallet-adapter concepts map onto @solana/kit.

If you are coming from `@solana/web3.js` (legacy), `@solana/wallet-adapter-*`,
or the earlier framework-kit packages (`@solana/client`, `@solana/react-hooks`,
`@solana/web3-compat`), we encourage migrating to `@solana/kit` plugins or
`@solana/web3.js` v3 (or higher).

This page maps the concepts you already know onto their Kit equivalents.

## Concept mapping

| web3.js (legacy) / wallet-adapter      | Kit                                                                  |
| -------------------------------------- | -------------------------------------------------------------------- |
| `new Connection(url)`                  | `createSolanaRpc(url)`, or `.use(solanaRpc({ rpcUrl }))` on a client |
| `PublicKey`                            | `Address` — coerce a string with `address("...")`                    |
| `Keypair`                              | `generateKeyPairSigner()` or the `@solana/kit-plugin-signer` plugins |
| `SystemProgram.transfer(...)`          | `getTransferSolInstruction(...)` from `@solana-program/system`       |
| `LAMPORTS_PER_SOL` math                | `lamports(...)` from `@solana/kit`                                   |
| `Transaction` / `VersionedTransaction` | Transaction messages built and packed by the transaction planner     |
| `sendAndConfirmTransaction(...)`       | `client.sendTransaction([...])` (planner signs, sends, and confirms) |
| `@solana/wallet-adapter-*`             | `@solana/kit-plugin-wallet` + Wallet Standard discovery              |

web3.js v3 keeps the class-based names above — `Connection`, `Keypair`,
`Transaction`, `PublicKey` — as thin wrappers over Kit internals, so the Kit
column also describes what those classes do under the hood in v3.

## Coming from web3.js?

If you maintain a large `@solana/web3.js` (legacy) codebase and a full rewrite
to Kit isn't practical, web3.js v3 is the bridge. Install it with
`@solana/web3.js`. It rebuilds the classic class-based API — `Connection`,
`Keypair`, `Transaction`, `PublicKey` — on top of `@solana/kit` internals.
Because it sits on Kit, interop is tight: `PublicKey` is the primary address
type and its `.toBase58()` returns Kit's branded `Address` string, and a v3
`Keypair` implements Kit's `KeyPairSigner`, so you can pass it directly to Kit
APIs, plugins, and Codama-generated clients.

<Warning>
  **v1 transactions and web3.js (legacy)**

  If you send v1 transactions with web3.js, you must use v3+.
</Warning>

For the migration itself, see the official
[web3.js v1 → v3 migration guide](https://github.com/solana-foundation/solana-web3.js/blob/main/docs/web3js-v1-to-v3-migration.md).

## Wallets

Kit does not use wallet-adapter. `@solana/kit-plugin-wallet` discovers Wallet
Standard wallets and exposes them through `client.wallet` and the
[React hooks](/developers/docs/frontend/react-hooks). Modern wallets (Phantom, Solflare,
Backpack, and others) advertise themselves through Wallet Standard, so no
per-wallet adapter package is required.

You may also use pre-built tools like
[@solana/connector](https://www.npmjs.com/package/@solana/connector), which uses
Kit primitives directly to connect to wallets.

<Info>
  **Still on wallet-adapter?**

  If you maintain an app built on `@solana/wallet-adapter-*` and are not ready
  to migrate, the [wallet-adapter
  repository](https://github.com/anza-xyz/wallet-adapter) remains the reference
  for that stack. For anything new, prefer the Kit wallet plugin.
</Info>

## Where to go next

- [Kit client](/developers/docs/frontend/client) — assemble a client from plugins.
- [React](/developers/docs/frontend/react-hooks) — `@solana/react` bindings and wallet
  hooks.
- [Next.js tutorial](/developers/docs/frontend/nextjs-solana) — a full app end to end.
