Solana
Assist with Solana transactions, token accounts, priority fees, and program interactions.
by clawic★ 23 GitHub stars
Install Solana in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Rent and Account Creation
- Every Solana account must hold a minimum SOL balance (~0.00089 SOL for basic accounts) to be rent-exempt — accounts below this get deleted
- Sending SOL to a new address that has never received anything will fail if the amount doesn't cover rent-exempt minimum
- Token accounts require separate rent deposits — each new token type a wallet holds costs ~0.002 SOL to create
- Close unused token accounts to recover rent:
spl-token closereturns the SOL to owner
Token Accounts (SPL Tokens)
- Unlike Ethereum, Solana wallets don't automatically hold tokens — each token needs an Associated Token Account (ATA) created first
- First-time token transfers must create the recipient's ATA — sender pays ~0.002 SOL account creation fee
- "Account not found" error usually means the ATA doesn't exist yet, not that the wallet is invalid
- One wallet can have multiple ATAs for the same token (non-associated) — always use the ATA address for standard transfers
Transaction Fees and Priority
- Base fee is ~0.000005 SOL (5000 lamports) per signature — much cheaper than Ethereum
- Priority fee = compute units × price in micro-lamports — set via
SetComputeUnitPriceinstruction - During congestion (NFT mints, popular DEX), transactions without priority fees get dropped, not queued
- Default compute unit limit is 200k per instruction — complex programs may need
SetComputeUnitLimitto increase
Transaction Lifecycle
- Solana transactions expire after ~60 seconds (based on blockhash age) — no permanent mempool like Bitcoin/Ethereum
- "Dropped" means tx was never included and expired. "Failed" means it was included but reverted. Completely different outcomes
- If transaction shows "confirmed" but not "finalized", wait — finalized means 31+ confirmations and is irreversible
- Preflight simulation catches most errors before broadcast — disable with
skipPreflight: trueonly if you know why
Common Error Messages
- "Insufficient funds for rent" — account would drop below rent-exempt minimum after transaction
- "Account not found" — the account doesn't exist on-chain (never created or was closed)
- "Blockhash not found" — transaction expired, need fresh blockhash and re-sign
- "Program failed to complete" — smart contract error, check logs with
solana confirm -v <txid>
RPC and APIs
- Public RPCs (api.mainnet-beta.solana.com) have strict rate limits — production apps need paid RPC (Helius, QuickNode, Triton)
getRecentPrioritizationFeesRPC gives current priority fee market — essential for landing txs during congestion- Solscan.io and Solana.fm are the main block explorers — both show decoded instruction data
- For token metadata (name, symbol, image), query Metaplex on-chain or use Helius/SimpleHash APIs
Wallet and Security
- Phantom, Solflare, Backpack are the main wallets — each has slightly different transaction simulation UI
- "Approve" prompts in Solana can drain entire wallet if malicious — read the simulation carefully
- Burner wallets are common practice for minting/airdrops — never connect main wallet to unknown sites
- Unlike Ethereum's infinite approvals, most Solana programs take tokens directly — no separate revoke step needed
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- _meta.json
FAQ
What does the Solana skill do?
Assist with Solana transactions, token accounts, priority fees, and program interactions.
How do I install the Solana skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the Solana skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…