Agent skill

Phantom Wallet

by phantom in phantom/phantom-connect-sdk

Phantom wallet connected. An agent skill from phantom/phantom-connect-sdk.

MITAuto-check passed

Install Phantom Wallet

skills CLI
$ npx skills add phantom/phantom-connect-sdk --skill phantom-wallet -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install phantom/phantom-connect-sdk phantom-wallet --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/phantom/phantom-connect-sdk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/phantom-openclaw-plugin/skills/phantom-wallet .claude/skills/phantom-wallet && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
phantom-wallet
GitHub stars
162
Token cost
~3.5k tokens
SKILL.md length
1,448 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Phantom wallet connected. An agent skill from phantom/phantom-connect-sdk.

  • Works in 4 steps: Extract and present these fields to the… → Wait for explicit user confirmation. → After confirmation, call pay_api_access… → …
  • SKILL.md covers Available Tools, Workflow and Safety Considerations
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Phantom Wallet is an agent skill from phantom/phantom-connect-sdk. Phantom wallet connected. You can transfer tokens, swap, sign messages, and more across Solana and Ethereum.

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Solana and Ethereum. The repository describes itself as: Multi-platform SDKs for integrating Phantom. The licence is MIT.

Example prompts

  • “/phantom-wallet”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Extract and present these fields to the user: token (what you're paying with), amount (how much), network (which chain), description (what…
  2. Wait for explicit user confirmation.
  3. After confirmation, call pay_api_access with the preparedTx value from the error response.
  4. Retry the original tool call on success.

What it can do on your machine

Read from SKILL.md and the folder at commit daa18ef. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Phantom Wallet loads about 3.5k tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 1,448 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from phantom/phantom-connect-sdk at commit daa18ef, republished under its MIT licence (© phantom). 1,448 words, ~3,547 tokens.

Download SKILL.mdSave it as .claude/skills/phantom-wallet/SKILL.md (or your agent's skills folder).
name
phantom-wallet
description
Phantom wallet connected. You can transfer tokens, swap, sign messages, and more across Solana and Ethereum.
version
1.0.0
emoji
👻
homepage
https://phantom.com
always
true

Phantom Wallet Operations

Phantom wallet connected. You can transfer tokens, swap, sign messages, and more across Solana and Ethereum.

You are helping the user interact with their Phantom embedded wallet. You have direct access to Phantom wallet tools integrated from the Phantom MCP Server and every wallet action is powered by Phantom.

Available Tools

get_connection_status

Lightweight local check of the wallet connection state. No network call — reads session state only. Use this first to confirm the user is authenticated.

Parameters: None

get_wallet_addresses

Retrieve wallet addresses for all supported blockchain chains (Solana, Ethereum, Bitcoin, Sui).

Parameters:

json
{
  "derivationIndex": 0
}
get_token_balances

Get all fungible token balances for the authenticated wallet with live USD prices. Use this before transfers or swaps to verify the user has sufficient funds.

Parameters: None

phantom_login

Trigger Phantom authentication or re-authentication. Use this when the user wants to connect explicitly, switch accounts, or recover from an expired session.

Parameters: None

pay_api_access

Pay for daily API access when another tool returns PaymentRequiredError.

Important: This tool signs and broadcasts a Solana transaction. Do NOT call it automatically.

When a PaymentRequiredError occurs:

  1. Extract and present these fields to the user: token (what you're paying with), amount (how much), network (which chain), description (what access is being purchased). Do not display preparedTx — it is an opaque transaction passed directly to the tool.
  2. Wait for explicit user confirmation.
  3. After confirmation, call pay_api_access with the preparedTx value from the error response.
  4. Retry the original tool call on success.

Security: The tool enforces three protections before signing:

  • destructiveHint: true annotation so MCP clients surface a confirmation prompt
  • Transaction validation: only SPL token Transfer/TransferChecked + ComputeBudget priority-fee instructions are permitted; SOL transfers, ATA creation, and any unknown programs are rejected immediately
  • Simulation-before-signing: the transaction is run through Phantom's scanner; any result flagged as malicious blocks signing before anything is broadcast

Parameters:

json
{
  "preparedTx": "base64-encoded-solana-transaction",
  "derivationIndex": 0
}
simulate_transaction

Preview expected asset changes, warnings, and blocking conditions without submitting anything on-chain. Supports Solana, EVM, Sui, Bitcoin, and EVM message-signing simulations.

Parameters:

json
{
  "chainId": "solana:mainnet",
  "type": "transaction",
  "params": {
    "transactions": ["base58-encoded-transaction"]
  }
}
send_solana_transaction

Simulate, sign, and broadcast a pre-built Solana transaction. Only use this when you already have a complete encoded transaction from an external source. For transfers use transfer_tokens; for swaps use buy_token.

Important: This is a two-step flow. First call without confirmed to simulate. Only call again with confirmed: true after explicit user approval.

Parameters:

json
{
  "transaction": "base64-encoded-solana-transaction",
  "networkId": "solana:mainnet",
  "derivationIndex": 0,
  "confirmed": false
}
sign_solana_message

Sign a UTF-8 message with the Solana wallet. Returns a base58-encoded signature. Use for authentication challenges and proof-of-ownership flows on Solana.

Parameters:

json
{
  "message": "Message to sign",
  "networkId": "solana:mainnet",
  "derivationIndex": 0
}
send_evm_transaction

Simulate, sign, and broadcast an EVM transaction using the authenticated wallet. Pass the fields you have — nonce, gas, and gas pricing fields are fetched from the network automatically if omitted. Use this when you have a transaction object from an external source (e.g. a DeFi aggregator) or when constructing a transaction directly.

Important: This is a two-step flow. First call without confirmed to simulate. Only call again with confirmed: true after explicit user approval.

Parameters:

json
{
  "chainId": 1,
  "to": "0xRecipientAddress",
  "value": "0x38D7EA4C68000",
  "derivationIndex": 0,
  "confirmed": false
}
sign_evm_personal_message

Sign a UTF-8 message using EIP-191 personal_sign with the EVM wallet. Returns a hex-encoded signature. Use for authentication challenges and proof-of-ownership flows on EVM chains.

Parameters:

json
{
  "message": "Message to sign",
  "chainId": 1,
  "derivationIndex": 0
}
sign_evm_typed_data

Sign EIP-712 typed structured data with the EVM wallet. Used for DeFi permit signatures, order signing (0x, Seaport, Uniswap Permit2), and other structured off-chain approvals.

Parameters:

json
{
  "typedData": {
    "types": { "Permit": [{ "name": "owner", "type": "address" }] },
    "primaryType": "Permit",
    "domain": { "name": "USD Coin", "chainId": 1, "verifyingContract": "0x..." },
    "message": { "owner": "0x...", "spender": "0x...", "value": "1000000000", "nonce": 0, "deadline": 1893456000 }
  },
  "chainId": 1,
  "derivationIndex": 0
}
get_token_allowance

Check the ERC-20 allowance granted by an owner to a spender on a supported EVM chain. Use this before EVM swaps or contract interactions to determine whether an approve() transaction is needed.

Parameters:

json
{
  "chainId": 8453,
  "tokenAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "spenderAddress": "0x0000000000001ff3684f28c67538d4d072c22734"
}
transfer_tokens

Transfer native tokens or fungible tokens on Solana and EVM chains. This tool is simulation-first. First call without confirmed to preview the transfer. Only call again with confirmed: true after explicit user approval.

Parameters:

  • networkId: Network — Solana (solana:mainnet, solana:devnet) or EVM (eip155:1, eip155:8453, eip155:137, eip155:143). Arbitrum (eip155:42161) is not supported
  • to: Recipient — Solana base58 address or EVM 0x-prefixed address
  • amount: Transfer amount (e.g., "0.1", 0.1, "1000000")
  • amountUnit: "ui" for human-readable units, "base" for atomic units (default: "ui")
  • tokenMint: (Optional) Token contract — Solana SPL mint or EVM ERC-20 0x address. Omit for native token.
  • decimals: (Optional) Token decimals — Solana fetches from chain if omitted; ERC-20 requires this when amountUnit: "ui"
  • derivationIndex: Account derivation index (default: 0)
  • createAssociatedTokenAccount: (Solana only) Create destination ATA if missing (default: true)
  • confirmed: Set to true only after the user approves the simulation preview

Example (SOL):

json
{ "networkId": "solana:mainnet", "to": "recipient-address", "amount": "0.1", "amountUnit": "ui" }

Example (ETH on Base):

json
{ "networkId": "eip155:8453", "to": "0xRecipient", "amount": "0.01", "amountUnit": "ui" }

Example (ERC-20 USDC on Ethereum):

json
{
  "networkId": "eip155:1",
  "to": "0xRecipient",
  "tokenMint": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "amount": "100",
  "amountUnit": "ui",
  "decimals": 6
}

Before Transfer Checklist:

  1. Verify the recipient address matches the chain type (Solana base58 vs EVM 0x)
  2. Confirm balance covers amount + fees (get_token_balances)
  3. For ERC-20: confirm decimals value is correct
  4. For EVM token transfers to a spender/contract flow, check allowance if relevant with get_token_allowance
  5. Get explicit user confirmation before sending
Show full SKILL.md (675 more words)Show less
buy_token

Fetch a swap quote from Phantom's routing engine. Supports Solana same-chain, EVM same-chain, and cross-chain swaps. Optionally execute immediately.

Parameters:

  • sellChainId: (Optional) Chain for the sell token — default: "solana:mainnet". EVM: "eip155:1", "eip155:8453", "eip155:137", etc.
  • buyChainId: (Optional) Chain for the buy token — defaults to sellChainId. Set differently for cross-chain.
  • sellTokenIsNative: Sell the native token (default: true if sellTokenMint not provided)
  • sellTokenMint: Token to sell — Solana mint or EVM 0x contract
  • buyTokenIsNative: Buy the native token
  • buyTokenMint: Token to buy — Solana mint or EVM 0x contract
  • amount: Swap amount
  • amountUnit: "ui" for token units, "base" for atomic units (default: "base")
  • exactOut: If true, amount is the buy amount instead of sell amount
  • slippageTolerance: Max slippage in percent (0-100)
  • execute: Sign and send immediately after the user approves the quote. Default: false
  • derivationIndex: Account derivation index (default: 0)
  • quoteApiUrl: Phantom-compatible API override. Leave unset for normal use.

Example (Solana — sell SOL, buy USDC):

json
{
  "sellChainId": "solana:mainnet",
  "sellTokenIsNative": true,
  "buyTokenMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount": "0.5",
  "amountUnit": "ui",
  "slippageTolerance": 1,
  "execute": true
}

Example (EVM — sell ETH, buy USDC on Base):

json
{
  "sellChainId": "eip155:8453",
  "sellTokenIsNative": true,
  "buyTokenMint": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "amount": "1000000000000000000",
  "slippageTolerance": 1,
  "execute": true
}

Example (Cross-chain quote — SOL → ETH, returns steps only):

json
{
  "sellChainId": "solana:mainnet",
  "buyChainId": "eip155:1",
  "sellTokenIsNative": true,
  "buyTokenIsNative": true,
  "amount": "1000000000"
}

Important Notes:

  • execute: false — returns quote only (safe, no transaction sent)
  • execute: true — signs and broadcasts the initiation transaction immediately after approval
  • For EVM swaps, use get_token_allowance when you need to check whether the sell token requires an ERC-20 approval
  • Cross-chain quotes may include steps and requiredApprovals in the response
  • Always display expected output, fees, and price impact before executing
  • Get explicit user confirmation before setting execute: true
portfolio_rebalance

Analyze and rebalance a portfolio allocation via token swaps. Currently supports Solana only. Use phase: "analyze" first, then phase: "execute" after the user approves the plan.

Parameters:

json
{
  "phase": "analyze"
}
Perps

The plugin also exposes Phantom-backed Hyperliquid perp tools:

  • get_perp_markets
  • get_perp_account
  • get_perp_positions
  • get_perp_orders
  • get_perp_trade_history
  • deposit_to_hyperliquid
  • open_perp_position
  • close_perp_position
  • cancel_perp_order
  • update_perp_leverage
  • transfer_spot_to_perps
  • withdraw_from_perps

Use the read-only perp tools first to inspect markets, balances, positions, and open orders before any write action.

Workflow

  1. Check connection — call get_connection_status first; if not connected, call get_wallet_addresses to trigger authentication
  2. Understand the user's intent — what do they want to do with their wallet?
  3. For financial operations (transfers/swaps):
    • Call get_token_balances to verify the user has sufficient funds (including ~0.000005 SOL for fees)
    • Fetch quotes or preview transaction details
    • Use get_token_allowance for EVM approval-sensitive flows when relevant
    • Display all details to user (recipient, amount, fees, expected outcome)
    • Get explicit confirmation from user before proceeding
    • For send_solana_transaction, send_evm_transaction, and transfer_tokens, do the simulation call first and only then the confirmed: true execution call
    • Only then call the execution tool (transfer_tokens with confirmed: true, send_*_transaction with confirmed: true, or buy_token with execute: true)
  4. Execute the appropriate tool — use get_wallet_addresses, sign_solana_message, sign_evm_personal_message, simulate_transaction, send_solana_transaction, send_evm_transaction, etc.
  5. Present results clearly — explain the outcome in user-friendly language

Safety Considerations

Critical: Confirmation Before Execution

For transfer_tokens, buy_token with execute: true, send_solana_transaction, send_evm_transaction, pay_api_access, and all perp write tools:

  1. NEVER call these tools without explicit user confirmation
  2. Present full transaction details to user first (recipient, amount, fees, slippage)
  3. Wait for user to confirm with "yes", "confirm", "proceed", or similar explicit approval
  4. If user says "no" or expresses uncertainty, do NOT proceed
  5. These tools execute irreversible on-chain or exchange actions — there is no undo

For send_solana_transaction, send_evm_transaction, and transfer_tokens, always use the built-in simulation step first unless the user explicitly wants to skip it and understands the risk.

Address Validation:

  • Verify addresses are valid Solana base58 format before using
  • Double-check addresses with user to prevent typos
  • Consider showing the first and last 4 characters for user verification

Amount Verification:

  • Check user has sufficient balance (amount + fees)
  • Explain the difference between "ui" units (user-friendly) and "base" units (atomic)
  • For Solana: 1 SOL = 1,000,000,000 lamports

Transaction Explanation:

  • Explain what signing a transaction or message means
  • Be transparent about network fees, DEX fees, and any other costs
  • Show expected transaction time (Solana: 1-2 seconds typically)
  • For simulations, explain warnings, blocking conditions, and expected asset changes in plain language

Error Handling:

  • If a transaction fails, explain why and suggest solutions
  • For swap failures, explain price movement and suggest retrying with higher slippage
  • Always provide transaction signatures so users can check on block explorers

© phantom, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in packages/phantom-openclaw-plugin/skills/phantom-wallet of phantom/phantom-connect-sdk.

Open the folder on GitHubat commit daa18ef

Compare with similar skills

Phantom Wallet next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Phantom Wallet compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Phantom Wallet this skillphantom/phantom-connect-sdk162—~3.5kAutomated safety check: PassMIT
NEAR Intents Swap Integrationinternet-court/internet-court-skill6.4k2 repos~939Automated safety check: PassCustom licence
Swapper Depositswapperfinance/swapper-toolkit852—~1.8kAutomated safety check: PassMIT
Minara Crypto Trading and WalletMinara-AI/minara-skills356—~5.7kAutomated safety check: PassNone
Gmgn TokenGMGNAI/gmgn-skills6011 repos~10kAutomated safety check: NotesMIT
Alchemy Agentic Gatewaymoonpay/skills113—~2.1kAutomated safety check: NotesMIT

Similar skills

  • NEAR Intents Swap Integration

    internet-court/internet-court-skill

    Builds cross-chain token swaps and bridge flows with the NEAR Intents 1Click API: quotes, deposit addresses, per-chain deposits and status polling.

    6.4k GitHub starsUsed in 2 repos~939 tokens
    Backend & APIsAuto-check passed
  • Swapper Deposit

    swapperfinance/swapper-toolkit

    Deposit and bridge funds into a wallet or protocol using Swapper Finance.

    852 GitHub stars~1.8k tokensUpdated 6 mo ago
    Business, Finance & HRAuto-check passed
  • Minara Crypto Trading and Wallet

    Minara-AI/minara-skills

    Drives the Minara CLI for crypto swaps, perps, limit orders, wallet transfers, deposits and withdrawals, plus AI market analysis.

    356 GitHub stars~5.7k tokensUpdated 20 days ago
    Business, Finance & HRAuto-check passed
  • Gmgn Token

    GMGNAI/gmgn-skills

    Research any crypto or meme token by address — real-time price, market cap, liquidity, holder list, trader list, top Smart Money and KOL positions, security audit (honeypot, rug pull risk, dev…

    601 GitHub starsUsed in 1 repo~10k tokens
    SecurityAuto-check: notes
  • A skill your agent uses when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or Alchemy-specific features.

    113 GitHub stars~2.1k tokensUpdated 27 days ago
    Backend & APIsAuto-check: notes
  • Trust Wallet SDK

    trustwallet/tw-agent-skills

    Trust Wallet open-source libraries — Wallet Core (HD wallets, address derivation, tx signing in Swift/Kotlin/TypeScript/Go for 140+ chains), Web3 Provider (dApp connection for…

    104 GitHub stars~364 tokensUpdated 3 mo ago
    MobileAuto-check passed

More from phantom/phantom-connect-sdk

  • New CLI Action

    phantom/phantom-connect-sdk

    Scaffold a new CLI action for this SDK repository. An agent skill from phantom/phantom-connect-sdk.

    162 GitHub stars~3k tokensUpdated 2 days ago
    Auto-check: notes

Works with

Questions about Phantom Wallet

What does Phantom Wallet do?

Phantom wallet connected. An agent skill from phantom/phantom-connect-sdk. Phantom Wallet is an agent skill from phantom/phantom-connect-sdk. Phantom wallet connected.

How do I install Phantom Wallet in Claude Code?

Run `npx skills add phantom/phantom-connect-sdk --skill phantom-wallet -a claude-code`. Or copy the skill folder (packages/phantom-openclaw-plugin/skills/phantom-wallet in phantom/phantom-connect-sdk) into .claude/skills/phantom-wallet in your project. Claude Code loads it when a task matches its description.

How do I install Phantom Wallet in Codex?

Run `npx skills add phantom/phantom-connect-sdk --skill phantom-wallet -a codex`. Or copy the skill folder (packages/phantom-openclaw-plugin/skills/phantom-wallet in phantom/phantom-connect-sdk) into .agents/skills/phantom-wallet in your project. Codex loads it when a task matches its description.

Can I use Phantom Wallet in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add phantom/phantom-connect-sdk --skill phantom-wallet -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/phantom-wallet, .gemini/skills/phantom-wallet, .github/skills/phantom-wallet and .opencode/skills/phantom-wallet in your project.

What does Phantom Wallet need to run?

SKILL.md names no scripts, command-line tools or credentials: Phantom Wallet is instructions for the agent only.

Does Phantom Wallet access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Phantom Wallet safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Phantom Wallet use?

Phantom Wallet is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Phantom Wallet use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Phantom Wallet?

Skills that share tags, products or a category with Phantom Wallet: NEAR Intents Swap Integration (internet-court/internet-court-skill, 6.4k stars), Swapper Deposit (swapperfinance/swapper-toolkit, 852 stars), Minara Crypto Trading and Wallet (Minara-AI/minara-skills, 356 stars) and Gmgn Token (GMGNAI/gmgn-skills, 601 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Phantom Wallet?

phantom (a GitHub organization) maintains it in phantom/phantom-connect-sdk, which has 162 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 5, 2026.

Source: phantom/phantom-connect-sdk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.