phantom login).
The Phantom Connect client SDKs are open source. Browse the source code, file issues, and contribute at github.com/phantom/phantom-connect-sdk.
Prerequisites (client SDKs)
The React, React Native, and Browser SDKs require that you sign up for an account in Phantom Portal:- Sign up at Phantom Portal.
- Register your app.
- Configure allowed domains and redirect URLs.
- Get your App ID.
Get started
Create an app in Phantom Portal to get your App ID and start building
Explore our SDKs
Each SDK is designed for specific use cases and environments, providing wallet integration across web and mobile platforms.Web apps
React SDK
Use the React SDK when building React web apps that need wallet connectivity. It provides React hooks for integration with your component architecture. Ideal use cases:- DeFi platforms built with React
- NFT marketplaces
- Web3 gaming interfaces
- Token management dashboards
React SDK documentation
Get started with the Phantom Connect React SDK
Browser SDK
Use the Phantom Connect Browser SDK for JavaScript/TypeScript apps or any web framework that isn’t React (such as Vue, Angular, Svelte). Ideal use cases:- Vanilla JavaScript apps
- Vue.js or Angular apps
- Server-side rendered apps
- Progressive Web Apps (PWAs)
Browser SDK documentation
Get started with the Phantom Connect Browser SDK
Mobile apps
React Native SDK
Use the Phantom Connect React Native SDK to build native mobile wallet experiences on iOS and Android with React Native. Supports secure OAuth authentication with Google and Apple. Ideal use cases:- Mobile-first DeFi apps
- Mobile gaming with blockchain integration
- Mobile NFT galleries
- Cross-platform wallet apps
React Native SDK documentation
Get started with the Phantom Connect React Native SDK
Backend apps
Server SDK
Use the Server SDK when you need programmatic control over wallet creation and transaction signing from your backend. Ideal for custodial services and APIs where the server manages wallets on behalf of users. Ideal use cases:- Custodial wallet services
- Automated transaction processing
- Backend APIs managing user wallets
- Gaming platforms with server-controlled assets
- Enterprise blockchain solutions
new ServerSDK(...). See Server SDK — Get started for the full setup walkthrough.
Server SDK documentation
Get started with the Phantom Server SDK
Command line
Phantom CLI
Use the Phantom CLI to interact with your wallet from the terminal. Sign transactions, transfer tokens, swap, manage balances, and trade perpetuals. The CLI also runs as an MCP server for AI agent integration. Ideal use cases:- Developer workflows and scripting
- AI agent integration via MCP
- Automated token transfers and swaps
- Perpetuals trading from the command line
npm install -g @phantom/cli, then run phantom login to authenticate via Google, Apple, or your Phantom extension in the browser. See Phantom CLI — Installation for details.
CLI documentation
Get started with the Phantom CLI
Client vs server SDKs
Client SDKs (React, Browser, React Native)
User-controlled wallets:- Users connect their existing Phantom wallets
- Users maintain full control of private keys
- Authentication via social login or browser extension
- Best for apps where users manage their own assets
Server SDK
Server-controlled wallets:- Your backend creates and manages wallets programmatically
- Server controls private keys (securely encrypted)
- Authentication via API credentials
- Best for custodial solutions and automated workflows
Security models
All Phantom Connect SDKs are built with enterprise-grade security:- Trusted Execution Environments (TEEs) for secure operations
- Hardware Security Modules (HSMs) for key encryption
- Multi-layer encryption with threshold cryptography
- Cryptographically signed audit trails for compliance
- Organization-based access control with configurable policies
Transaction security for embedded wallets
All transactions signed for embedded wallets pass through Phantom’s advanced simulation system before execution. This security layer:- Simulates transactions before they’re broadcast to detect potential threats
- Automatically blocks malicious transactions that could drain funds or exploit vulnerabilities
- Blocks transactions from origins that have been reported as malicious
- Provides an additional layer of protection for your users’ assets
Chain support
All Phantom Connect SDKs support the following blockchain networks:| Chain | Embedded wallets | Injected wallets |
|---|---|---|
| Solana (Mainnet, Devnet, Testnet) | Supported | Supported |
| Ethereum | Coming soon | Supported |
| Polygon | Coming soon | Supported |
| Base | Coming soon | Supported |
| Arbitrum | Coming soon | Supported |
| Monad | Coming soon | Supported |
EVM chain support for embedded wallets is planned for later in 2026. Injected wallet connections (Phantom browser extension) already support all listed EVM chains.
Authentication options
All client SDKs support social login (Google and Apple) and seven-day active sessions. Web SDKs (React, Browser) additionally support:- Phantom Login: Authenticate with an existing Phantom account
- Mobile deep link: Connect via the Phantom mobile app on mobile devices
- Browser extension: Connect directly to the Phantom browser extension
The React Native SDK currently supports Google and Apple social login only. Phantom Login, deep link, and extension connections are not available on React Native.
Server SDK
- API credentials: Organization ID, App ID, and Private Key
- Programmatic access: No user interaction required
Learn more about Phantom Connect: For detailed information about authentication flows, account selection, and session management, see the Phantom Connect guide.
Example apps
Explore complete, production-ready examples built by the Phantom team:React SDK demo
Full-featured React example with all SDK capabilities
Browser SDK demo
Vanilla JavaScript implementation
React Native demo
Mobile app with Expo
Next.js example
Complete Next.js integration
Wagmi integration
Use with Wagmi for Ethereum
Connect modal with deeplinks
Modal with mobile deeplink support
All examples
Browse all examples on GitHub
Key management and signing
All Phantom Connect SDKs support KMS-backed wallets. The SDK completes a Connect sign-in and stamps requests so KMS can validate, authorize, and sign.How Phantom KMS works
Learn how KMS handles key storage and signing for wallets.
AI-powered setup
Use the Phantom Cursor plugin to scaffold any SDK project with AI. The plugin includes skills for React, React Native, and Browser SDK setup. Your Cursor agent handles installation, configuration, and boilerplate automatically.Phantom Cursor plugin
Install the Cursor plugin to scaffold projects, generate integration code, and execute wallet operations with AI
Need help?
Support
Get help from our developer support team
Sandbox
Test your integration in our sandbox
FAQ
Find answers to common questions