Skip to main content

Connect to Solana

Solana is a high-performance network that provides fast transaction speeds and low fees. You can interact with users' Solana accounts in MetaMask using the Wallet Standard or third-party libraries for Solana dapps.

MetaMask Connect

MetaMask Connect is the easiest way to connect to Solana in MetaMask.

note

See the Use MetaMask Connect Guide for JavaScript for more information.

Framework Kit

Framework-kit supports MetaMask out-of-the-box for Solana dapps, handling RPC connections, wallet adapters, and state management for you:

  • One provider, many hooks — Wrap your app once with SolanaProvider, then use hooks anywhere.
  • Wallet connection built-inuseWalletConnection handles discovery, connection, and disconnection.
  • Automatic data refresh — Balances and account data stay in sync without manual refetching.
  • Common operations simplifieduseSolTransfer, useSplToken, and useTransactionPool for transfers and custom transactions.
  • TypeScript-first — Full type inference out of the box.
note

See the Use Framework Kit Guide for more information.

Wallet Standard

MetaMask implements the Wallet Standard, so MetaMask is supported out-of-the-box for Solana dapps that use the Wallet Standard or that integrate Solana's Wallet Adapter.

note

With the Wallet Standard, MetaMask does not appear as a connection option for users that don't already have MetaMask installed. Check out How to use the Wallet Adapter Guide.

Third-party libraries

Several third-party libraries for Solana dapps detect and handle MetaMask out-of-the-box, including: