The Server SDK is currently experimental and not ready for production use.
Access Required: Please reach out to partnerships@phantom.com to get access to the Server SDK.
What is the Server SDK?
The Server SDK is a Node.js library that provides programmatic access to Phantom’s wallet infrastructure from your backend services. Unlike browser-based wallet interactions, the Server SDK allows you to:- Create and manage wallets on behalf of your users
- Sign transactions and messages programmatically
- Submit transactions to multiple blockchains
Key Features
- Works seamlessly with Solana, Ethereum, Polygon, Sui, Bitcoin, Base, and other major blockchains
- Enterprise-grade security with cryptographic authentication and secure key management
- Full API access for wallet creation, transaction signing, and blockchain interactions
- Built to handle high-volume applications with efficient wallet management and pagination
Use Cases
The Server SDK is ideal for:- Gaming Platforms: Create seamless blockchain gaming experiences without requiring users to manage wallets
- DeFi Applications: Automate complex DeFi interactions and transaction flows
- NFT Marketplaces: Enable smooth NFT minting and trading experiences
- Enterprise Solutions: Build blockchain applications for businesses with compliance requirements
Documentation Overview
1
Getting Started
Learn the basics of the Server SDK, installation, and initial setup.Read Getting Started →
2
Integration Guide
Follow our comprehensive guide to integrate the SDK into your backend application.Read Integration Guide →
3
Creating Wallets
Learn how to programmatically create and manage wallets for your users.Read Creating Wallets →
4
Signing Transactions
Understand how to sign and submit transactions across different blockchains.Read Signing Transactions →
5
Signing Messages
Learn how to sign arbitrary messages for authentication and verification.Read Signing Messages →
6
API Reference
Complete reference documentation for all SDK methods and types.Read API Reference →
Prerequisites
- Register your application
Sign up or log in to the Phantom Portal and register your application. - Obtain your App ID
- In the Portal, go to your app and open URL Config (left-hand menu).
- This page shows your allowed origins and redirect URLs.
- Scroll down to the App ID section at the bottom of the page — your App ID is listed there, below the URL configurations.
- Copy the App ID for use in your integration.
Quick Start
1. Set up Environment Variables
Create a.env
file in your project root:
2. Initialize the SDK
Usage Examples
Creating a Wallet
Signing and Sending Transactions
Solana - Native Web3.js Transaction Objects
Ethereum/EVM - Transaction Objects
Raw Formats - Hex Strings and Bytes
Signing Messages
Managing Wallets
Network Support
The SDK supports multiple blockchain networks through theNetworkId
enum
Support
- Documentation Issues: Open an issue on our GitHub repository
- Access Requests: Contact partnerships@phantom.com
- Technical Support: Available for enterprise customers
Ready to get started? Check out our Getting Started guide to begin building with the Phantom Server SDK.