Skip to content

api-evangelist/phantom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Phantom (phantom)

Phantom is a self-custodial multi-chain crypto wallet for Solana, Ethereum, Polygon, Base, Bitcoin, Sui, Monad, and HyperEVM, distributed as a mobile app (iOS/Android) and browser extension with more than 20 million users. For developers, Phantom exposes injected Provider APIs per chain on window.phantom (Solana, EVM, Bitcoin, Sui) following the Wallet Standard and EIP-1193, a Universal Link / phantom:// Deeplinks API for mobile dApp integration with encrypted session handshakes, a multi-platform Connect SDK suite (React, React Native, Browser SDKs) with embedded wallet support and OAuth social login (Google, Apple), and a Phantom MCP Server that exposes 27 tools across wallet operations, swaps, portfolio rebalancing, and Hyperliquid perpetuals for AI agents — each agent receives its own wallet via device-code authentication. Apps register through the Phantom Portal to obtain an App ID, configure redirect URLs, verify domains, and opt into auto-confirm contracts.

URL: Visit APIs.json

Run: Capabilities Using Naftiko

Tags

  • Base, Bitcoin, Blockchain, Crypto, Cryptocurrency, Deeplinks, Embedded Wallet, Ethereum, EVM, Monad, MCP, Mobile, Polygon, Self-Custody, Solana, Sui, Wallet, Web3

Timestamps

  • Created: 2026-05-24
  • Modified: 2026-05-24

Supported Chains

Chain Provider Namespace Notes
Solana window.phantom.solana Wallet Standard, Sign-In With Solana, Versioned Transactions, Token-2022, Actions & Blinks
Ethereum window.ethereum / window.phantom.ethereum EIP-1193
Polygon window.ethereum EIP-1193
Base window.ethereum EIP-1193
Monad (testnet) window.ethereum EIP-1193
HyperEVM window.ethereum EIP-1193
Bitcoin window.phantom.bitcoin Taproot, SegWit, p2sh, p2pkh — provider deprecation announced
Sui window.phantom Move; signTransactionBlock, signMessage

APIs

Phantom Solana Provider API

Solana wallet provider injected at window.phantom.solana exposing connect, disconnect, signMessage, signIn (Sign-In With Solana), signTransaction, signAllTransactions, and signAndSendTransaction. Implements the Solana Wallet Standard so dApps can also integrate through @solana/wallet-adapter. Supports versioned transactions, priority fees, Token-2022 extensions, and Solana Actions & Blinks.

Human URL: https://docs.phantom.com/solana/integrating-phantom

Phantom EVM Provider API

EIP-1193 compliant Ethereum Provider API injected at window.ethereum and window.phantom.ethereum for Ethereum, Polygon, Base, Monad testnet, and HyperEVM. Supports the full Ethereum RPC surface for connecting accounts, reading chain state, signing messages and typed data, sending transactions, switching and adding chains, and watching assets.

Human URL: https://docs.phantom.com/ethereum-monad-testnet-base-and-polygon/provider-api-reference

Phantom Bitcoin Provider API

Bitcoin provider injected at window.phantom.bitcoin exposing requestAccounts, signMessage, and signPSBT. Returns BtcAccount objects with address, publicKey, addressType, and purpose ("payment" vs. "ordinals"). Supports Taproot (p2tr), SegWit (p2wpkh), p2sh, and p2pkh address types. The window.phantom.bitcoin provider is scheduled for deprecation in an upcoming release.

Human URL: https://docs.phantom.com/bitcoin/provider-api-reference

Phantom Sui Provider API

Sui provider exposed via window.phantom for browser and mobile platforms, offering connect, signTransactionBlock, and signMessage so Sui dApps can integrate Phantom alongside their existing EVM/Solana flows.

Human URL: https://docs.phantom.com/sui/getting-started-with-sui

Phantom Deeplinks API

Universal Link (https://phantom.app/ul/v1/<method>) and custom protocol (phantom://v1/<method>) deeplinks for iOS and Android lets mobile dApps trigger Phantom for connect, disconnect, signMessage, signTransaction, signAllTransactions, signAndSendTransaction, and browse (open URL in the in-app browser). Uses an X25519 / TweetNaCl box encryption handshake with shared-secret-encrypted payloads and a returned session token. Currently scoped to Solana. Universal Links are the recommended scheme.

Human URL: https://docs.phantom.com/phantom-deeplinks/deeplinks-ios-and-android

Base URL: https://phantom.app/ul/v1

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.

Human URL: https://docs.phantom.com/sdks/react-sdk

Phantom React Native SDK

React Native SDK that lets iOS and Android apps embed Phantom wallet functionality, including embedded wallets, social login, and connection to the installed Phantom mobile app via deeplinks.

Human URL: https://docs.phantom.com/sdks/react-native-sdk

Phantom Browser SDK

Framework-agnostic Browser SDK for integrating Phantom into vanilla JavaScript or TypeScript web apps. Wraps the injected providers and embedded wallet flows so non-React applications can take advantage of the same connect/sign/transaction surface.

Human URL: https://docs.phantom.com/sdks/browser-sdk

Phantom MCP Server

Model Context Protocol server (@phantom/mcp-server) that exposes 27 tools to AI agents across wallet operations (connection status, addresses, balances, transfers, transaction sending, message and typed-data signing, simulation, allowances, login, pay), swap and portfolio (buy_token, portfolio_rebalance), and Hyperliquid perpetuals (market data, positions, orders, deposits, leverage, spot-to-perps transfers). Each agent gets its own wallet via device-code Phantom sign-in; sessions are stored at ~/.phantom-mcp/session.json with OIDC-stamped KMS request signing. Supports Solana, Ethereum, Bitcoin, and Sui.

Human URL: https://docs.phantom.com/phantom-mcp-server

Phantom Portal

Developer portal for registering apps that integrate Phantom. Provides account creation, app creation with App IDs, domain verification, redirect URL configuration, app metadata editing, and contract allowlisting for auto-confirm flows that streamline repeat signing.

Human URL: https://docs.phantom.com/phantom-portal/portal

Common

Source Code & Samples

About

Phantom is a self-custodial multi-chain crypto wallet for Solana, Ethereum, Polygon, Base, Bitcoin, Sui, Monad, and HyperEVM, distributed as a mobile app (iOS/Android) and browser extension with more than 20 million users. For developers, Phantom exposes injected Provider APIs per chain on window.phantom (Solana, EVM, Bitcoin, Sui) following the…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors