phantom/phantom-connect-sdk/phantom-wallet
Claude Code and agent skill by phantom/phantom-connect-sdk
- community
Checking that the SKILL.md file is still in the repository.
Phantom wallet connected. You can transfer tokens, swap, sign messages, and more across Solana and Ethereum.
Install
npx vskill@latest install phantom/phantom-connect-sdk/phantom-walletSKILL.md
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:
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:
- 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 displaypreparedTx— it is an opaque transaction passed directly to the tool. - Wait for explicit user confirmation.
- After confirmation, call
pay_api_accesswith thepreparedTxvalue from the error response. - Retry the original tool call on success.
Security: The tool enforces three protections before signing:
destructiveHint: trueannotation 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:
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:
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:
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:
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:
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:
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:
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:
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 supportedto: Recipient — Solana base58 address or EVM0x-prefixed addressamount: 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-200xaddress. Omit for native token.decimals: (Optional) Token decimals — Solana fetches from chain if omitted; ERC-20 requires this whenamountUnit: "ui"derivationIndex: Account derivation index (default: 0)createAssociatedTokenAccount: (Solana only) Create destination ATA if missing (default: true)confirmed: Set totrueonly after the user approves the simulation preview
Example (SOL):
Example (ETH on Base):
Example (ERC-20 USDC on Ethereum):
Before Transfer Checklist:
- Verify the recipient address matches the chain type (Solana base58 vs EVM
0x) - Confirm balance covers amount + fees (
get_token_balances) - For ERC-20: confirm
decimalsvalue is correct - For EVM token transfers to a spender/contract flow, check allowance if relevant with
get_token_allowance - Get explicit user confirmation before sending
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 tosellChainId. Set differently for cross-chain.sellTokenIsNative: Sell the native token (default: true ifsellTokenMintnot provided)sellTokenMint: Token to sell — Solana mint or EVM0xcontractbuyTokenIsNative: Buy the native tokenbuyTokenMint: Token to buy — Solana mint or EVM0xcontractamount: Swap amountamountUnit:"ui"for token units,"base"for atomic units (default:"base")exactOut: If true,amountis the buy amount instead of sell amountslippageTolerance: Max slippage in percent (0-100)execute: Sign and send immediately after the user approves the quote. Default: falsederivationIndex: Account derivation index (default: 0)quoteApiUrl: Phantom-compatible API override. Leave unset for normal use.
Example (Solana — sell SOL, buy USDC):
Example (EVM — sell ETH, buy USDC on Base):
Example (Cross-chain quote — SOL → ETH, returns steps only):
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_allowancewhen you need to check whether the sell token requires an ERC-20 approval - Cross-chain quotes may include
stepsandrequiredApprovalsin 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:
Perps
The plugin also exposes Phantom-backed Hyperliquid perp tools:
get_perp_marketsget_perp_accountget_perp_positionsget_perp_ordersget_perp_trade_historydeposit_to_hyperliquidopen_perp_positionclose_perp_positioncancel_perp_orderupdate_perp_leveragetransfer_spot_to_perpswithdraw_from_perps
Use the read-only perp tools first to inspect markets, balances, positions, and open orders before any write action.
Workflow
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/phantom-openclaw-plugin/skills/phantom-wallet/skill.md
Popularity
- Repository stars
- 165
- Repository forks
- 92
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/phantom/phantom-connect-sdk/phantom-wallet)