Phantom React SDK

React SDK (@phantom/react-sdk) for integrating Phantom across Solana and EVM chains with embedded wallet support and OAuth social login (Google, Apple) alongside the browser extension path. Provides hooks (usePhantom, useSolana, useEthereum) and components (ConnectButton, ConnectBox) plus peer dependencies on @solana/web3.js and viem.

API entry from apis.yml

apis.yml Raw ↑
aid: phantom:phantom-react-sdk
name: Phantom React SDK
tags:
- Embedded Wallet
- Ethereum
- OAuth
- React
- SDK
- Social Login
- Solana
- Wallet
- Web
humanURL: https://docs.phantom.com/sdks/react-sdk
properties:
- url: https://docs.phantom.com/sdks/react-sdk
  type: Documentation
- url: https://www.npmjs.com/package/@phantom/react-sdk
  type: SDK
- url: https://github.com/phantom/phantom-connect-sdk
  type: SourceCode
description: React SDK (@phantom/react-sdk) for integrating Phantom across Solana and EVM chains with
  embedded wallet support and OAuth social login (Google, Apple) alongside the browser extension path.
  Provides hooks (usePhantom, useSolana, useEthereum) and components (ConnectButton, ConnectBox) plus
  peer dependencies on @solana/web3.js and viem.