/phantom-connect:phantom-connectfrom phantom-connect
Integrates Phantom wallets into React, React Native, and vanilla JS/TS apps for Solana. Covers wallet connection, social login (Google/Apple), transaction signing, message signing, token-gated access, crypto payments, and NFT minting using @phantom/react-sdk, @phantom/react-native-sdk, and @phantom/browser-sdk.
Ships in phantom-connect. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build wallet-connected Solana applications with the Phantom Connect SDK ecosystem.
| Platform | SDK | Package |
|---|---|---|
| React web apps | React SDK | @phantom/react-sdk |
| React Native / Expo | React Native SDK | @phantom/react-native-sdk |
| Vanilla JS / Vue / Angular | Browser SDK | @phantom/browser-sdk |
| Provider | Description | Requires appId |
|---|---|---|
"injected" | Phantom browser extension | No |
"google" | Google OAuth (embedded wallet) | Yes |
"apple" | Apple ID (embedded wallet) | Yes |
signAndSendTransaction — signTransaction and signAllTransactions are NOT supported for embedded walletsLAMPORTS_PER_SOL from @solana/web3.js for amount conversion — never hardcode 1000000000isConnected before signing — verify wallet connection before any operationreact-native-get-random-values must be the FIRST import — before any other importsAddressType from @phantom/browser-sdk onlyimport { PhantomProvider, useModal, usePhantom, darkTheme } from "@phantom/react-sdk";
import { AddressType } from "@phantom/browser-sdk";
function App() {
return (
<PhantomProvider
config={{
providers: ["google", "apple", "injected"],
appId: "your-app-id",
addressTypes: [AddressType.solana],
authOptions: { redirectUrl: "https://yourapp.com/callback" },
}}
theme={darkTheme}
>
<YourApp />
</PhantomProvider>
);
}
// CRITICAL: Must be first import
import "react-native-get-random-values";
import { PhantomProvider, AddressType, darkTheme } from "@phantom/react-native-sdk";
// Requires app.json: { "expo": { "scheme": "myapp", "plugins": [...] } }
import { BrowserSDK, AddressType } from "@phantom/browser-sdk";
const sdk = new BrowserSDK({
providers: ["google", "apple", "injected"],
appId: "your-app-id",
addressTypes: [AddressType.solana],
autoConnect: true,
});
For detailed implementation patterns, read these files:
| Issue | Solution |
|---|---|
| "appId required" | Add appId from Phantom Portal when using google/apple providers |
| Redirect not working | Allowlist redirectUrl in Phantom Portal |
| React Native crashes | Import react-native-get-random-values as FIRST import |
| Extension not detected | Use waitForPhantomExtension() with timeout |
signTransaction error | Use signAndSendTransaction instead — embedded wallets don't support signTransaction |
references/browser-sdk.md (opens in a new tab)references/nft-minting.md (opens in a new tab)references/payments.md (opens in a new tab)references/react-native-sdk.md (opens in a new tab)references/react-sdk.md (opens in a new tab)references/token-gating.md (opens in a new tab)references/transactions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md", mcpServers: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
8 skills in this plugin
/add-social-loginConfigure Google and Apple social login with Phantom Connect SDK to enable embedded wallet creation/phantom-wallet-mcpExecute wallet operations through the Phantom MCP server — get addresses, sign transactions, transfer tokens, buy tokens, and sign messages across Solana, Ethereum, Bitcoin, and Sui/send-sol-transactionBuild and send SOL transfers with Phantom Connect SDK, including transaction construction, signing, and verification/setup-browser-appScaffold a vanilla JS/TS app with Phantom Browser SDK for wallet integration, without any framework dependency/setup-react-appScaffold a React app with Phantom Connect SDK for wallet integration, including social login and Solana support/setup-react-native-appScaffold a React Native (Expo) app with Phantom React Native SDK for mobile wallet integration, including polyfills and deep linkingOther plugins' skills for the same job