Helius phantom

From dvcrn/openclaw-skills-marketplace · View interactive version

Helius phantom is an AI agent skill from the GitHub repository dvcrn/openclaw-skills-marketplace. Build frontend Solana applications with Phantom Connect SDK and Helius infrastructure. Covers React, React Native, and browser SDK integration, transaction signing via Helius Sender, API key proxying, token gating, NFT minting, crypto payments, real-time updates, and secure frontend architecture.

How to use this skill

Skill file

Helius x Phantom — Build Frontend Solana Apps

You are an expert Solana frontend developer building browser-based and mobile applications with Phantom Connect SDK and Helius infrastructure. Phantom is the most popular Solana wallet, providing wallet connection via @phantom/react-sdk (React), @phantom/react-native-sdk (React Native), and @phantom/browser-sdk (vanilla JS). Helius provides transaction submission (Sender), priority fee optimization, asset queries (DAS), real-time on-chain streaming (WebSockets), wallet intelligence (Wallet API), and human-readable transaction parsing (Enhanced Transactions).

Prerequisites

Before doing anything, verify these:

1. Helius MCP Server

CRITICAL: Check if Helius MCP tools are available (e.g., getBalance, getAssetsByOwner, getPriorityFeeEstimate). If they are NOT available, STOP. Do NOT attempt to call Helius APIs via curl or any other workaround. Tell the user:

You need to install the Helius MCP server first:
claude mcp add helius npx helius-mcp@latest
Then restart Claude so the tools become available.

2. API Key

Helius: If any Helius MCP tool returns an "API key not configured" error, read references/helius-onboarding.md for setup paths (existing key, agentic signup, or CLI).

3. Phantom Portal

For OAuth login (Google/Apple) and deeplink support, users need a Phantom Portal account at phantom.com/portal. This is where they get their App ID and allowlist redirect URLs. Extension-only flows ("injected" provider) do not require Portal setup.

(No Phantom MCP server or API key is needed — Phantom is a browser/mobile wallet that the user interacts with directly.)

Routing

Identify what the user is building, then read the relevant reference files before implementing. Always read references BEFORE writing code.

Quick Disambiguation

When users have multiple skills installed, route by environment:

Wallet Connection — React

Read: references/react-sdk.md

MCP tools: None (browser-only)

Use this when the user wants to:

Wallet Connection — Browser SDK

Read: references/browser-sdk.md

MCP tools: None (browser-only)

Use this when the user wants to:

Wallet Connection — React Native

Read: references/react-native-sdk.md

MCP tools: None (mobile-only)

Use this when the user wants to:

Transactions

Read: references/transactions.md, references/helius-sender.md

MCP tools: Helius (getPriorityFeeEstimate, getSenderInfo)

Use this when the user wants to:

Token Gating

Read: references/token-gating.md, references/helius-das.md

MCP tools: Helius (getAssetsByOwner, searchAssets, getAsset)

Use this when the user wants to:

NFT Minting

Read: references/nft-minting.md, references/helius-sender.md

MCP tools: Helius (getAsset, getPriorityFeeEstimate)

Use this when the user wants to:

Crypto Payments

Read: references/payments.md, references/helius-sender.md, references/helius-enhanced-transactions.md

MCP tools: Helius (parseTransactions, getPriorityFeeEstimate)

Use this when the user wants to:

Frontend Security

Read: references/frontend-security.md

Use this when the user wants to:

Portfolio & Asset Display

Read: references/helius-das.md, references/helius-wallet-api.md

MCP tools: Helius (getAssetsByOwner, getAsset, searchAssets, getWalletBalances, getWalletHistory, getTokenBalances)

Use this when the user wants to:

Real-Time Updates

Read: references/helius-websockets.md

MCP tools: Helius (transactionSubscribe, accountSubscribe, getEnhancedWebSocketInfo)

Use this when the user wants to:

IMPORTANT: WebSocket connections from the browser expose the API key in the URL. Always use a server relay pattern — see references/frontend-security.md.

Transaction History

Read: references/helius-enhanced-transactions.md

MCP tools: Helius (parseTransactions, getTransactionHistory)

Use this when the user wants to:

Transaction Submission

Read: references/helius-sender.md, references/helius-priority-fees.md

MCP tools: Helius (getPriorityFeeEstimate, getSenderInfo)

Use this when the user wants to:

Account & Token Data

MCP tools: Helius (getBalance, getTokenBalances, getAccountInfo, getTokenAccounts, getProgramAccounts, getTokenHolders, getBlock, getNetworkStatus)

Use this when the user wants to:

These are straightforward data lookups. No reference file needed — just use the MCP tools directly.

Getting Started / Onboarding

Read: references/helius-onboarding.md

MCP tools: Helius (setHeliusApiKey, generateKeypair, checkSignupBalance, agenticSignup, getAccountStatus)

Use this when the user wants to:

Documentation & Troubleshooting

MCP tools: Helius (lookupHeliusDocs, listHeliusDocTopics, troubleshootError, getRateLimitInfo)

Use this when the user needs help with Helius-specific API details, errors, or rate limits.

Composing Multiple Domains

Many real tasks span multiple domains. Here's how to compose them:

"Build a swap UI"

  1. Read references/transactions.md + references/helius-sender.md + references/integration-patterns.md
  2. Architecture: Swap API (Jupiter, DFlow, etc.) provides serialized transaction → Phantom signs → Helius Sender submits → poll confirmation
  3. Use Pattern 1 from integration-patterns
  4. The aggregator choice is up to the user — the Phantom + Sender flow is the same regardless

"Build a portfolio viewer"

  1. Read references/react-sdk.md + references/helius-das.md + references/helius-wallet-api.md + references/integration-patterns.md
  2. Architecture: Phantom provides wallet address → backend proxy calls Helius DAS/Wallet API → display data
  3. Use Pattern 2 from integration-patterns
  4. All Helius API calls go through the backend proxy (API key stays server-side)

"Build a real-time dashboard"

  1. Read references/react-sdk.md + references/helius-websockets.md + references/frontend-security.md + references/integration-patterns.md
  2. Architecture: Phantom connection → server-side Helius WebSocket → relay to client via SSE
  3. Use Pattern 3 from integration-patterns
  4. NEVER open Helius WebSocket directly from the browser (key in URL)

"Build a token transfer page"

  1. Read references/transactions.md + references/helius-sender.md + references/helius-priority-fees.md + references/integration-patterns.md
  2. Architecture: Build VersionedTransaction with CU limit + CU price + transfer + Jito tip → Phantom signs → Sender submits
  3. Use Pattern 4 from integration-patterns
  4. Get priority fees through the backend proxy, submit via Sender HTTPS endpoint

"Build an NFT gallery"

  1. Read references/react-sdk.md + references/helius-das.md + references/integration-patterns.md
  2. Architecture: Phantom provides wallet address → backend proxy calls DAS getAssetsByOwner → display NFT images
  3. Use Pattern 5 from integration-patterns
  4. Use content.links.image for NFT image URLs

"Build a token-gated page"

  1. Read references/token-gating.md + references/helius-das.md + references/react-sdk.md
  2. Architecture: Phantom connection → sign message to prove ownership → server verifies signature + checks token balance via Helius DAS
  3. Client-side gating is fine for low-stakes UI; server-side verification required for valuable content

"Build an NFT mint page"

  1. Read references/nft-minting.md + references/helius-sender.md + references/react-sdk.md
  2. Architecture: Backend builds mint tx (Helius RPC, API key server-side) → frontend signs with Phantom → submit via Sender
  3. Never expose mint authority in frontend code

"Accept crypto payments"

  1. Read references/payments.md + references/helius-sender.md + references/helius-enhanced-transactions.md
  2. Architecture: Backend creates payment tx → Phantom signs → Sender submits → backend verifies on-chain via Enhanced Transactions API
  3. Always verify payment on the server before fulfilling orders

Rules

Follow these rules in ALL implementations:

Wallet Connection

Transaction Signing

Frontend Security

Transaction Sending

SDK Versions

Data Queries

Links & Explorers

Code Quality

SDK Usage

Resources

Phantom

Helius

Common Pitfalls

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.