solana – skill Khác cho agent AI
Truy vấn ví, token, giao dịch và NFT trên Solana theo USD.
Cài skill solana bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/solana-03808.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /solana – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/solana-03808.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $solana – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/solana-03808.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /solana – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/solana-03808.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /solana – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Solana Blockchain Skill
Query Solana on-chain data enriched with USD pricing via CoinGecko.
8 commands: wallet portfolio, token info, transactions, activity, NFTs,
whale detection, network stats, and price lookup.
No API key needed. Uses only Python standard library (urllib, json, argparse).
---
When to Use
- User asks for a Solana wallet balance, token holdings, or portfolio value
- User wants to inspect a specific transaction by signature
- User wants SPL token metadata, price, supply, or top holders
- User wants recent transaction history for an address
- User wants NFTs owned by a wallet
- User wants to find large SOL transfers (whale detection)
- User wants Solana network health, TPS, epoch, or SOL price
- User asks "what's the price of BONK/JUP/SOL?"
---
Prerequisites
The helper script uses only Python standard library (urllib, json, argparse).
No external packages required.
Pricing data comes from CoinGecko's free API (no key needed, rate-limited
to ~10-30 requests/minute). For faster lookups, use --no-prices flag.
---
Quick Reference
RPC endpoint (default): https://api.mainnet-beta.solana.com
Override: export SOLANA_RPC_URL=https://your-private-rpc.com
Helper script path: ~/.hermes/skills/blockchain/solana/scripts/solana_client.py
python solana_client.py wallet <address> [--limit N] [--all] [--no-prices]
python solana_client.py tx <signature>
python solana_client.py token <mint_address>
python solana_client.py activity <address> [--limit N]
python solana_client.py nft <address>
python solana_client.py whales [--min-sol N]
python solana_client.py stats
python solana_client.py price <mint_or_symbol>---
Procedure
0. Setup Check
python --version
# Optional: set a private RPC for better rate limits
export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"
# Confirm connectivity
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py stats1. Wallet Portfolio
Get SOL balance, SPL token holdings with USD values, NFT count, and
portfolio total. Tokens sorted by value, dust filtered, known tokens
labeled by name (BONK, JUP, USDC, etc.).
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py \
wallet 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWMFlags:
--limit N— show top N tokens (default: 20)--all— show all tokens, no dust filter, no limit--no-prices— skip CoinGecko price lookups (faster, RPC-only)
Output includes: SOL balance + USD value, token list with prices sorted
by value, dust count, NFT summary, total portfolio value in USD.
2. Transaction Details
Inspect a full transaction by its base58 signature. Shows balance changes
in both SOL and USD.
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py \
tx 5j7s8K...your_signature_hereOutput: slot, timestamp, fee, status, balance changes (SOL + USD),
program invocations.
3. Token Info
Get SPL token metadata, current price, market cap, supply, decimals,
mint/freeze authorities, and top 5 holders.
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py \
token DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263Output: name, symbol, decimals, supply, price, market cap, top 5
holders with percentages.
4. Recent Activity
List recent transactions for an address (default: last 10, max: 25).
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py \
activity 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM --limit 255. NFT Portfolio
List NFTs owned by a wallet (heuristic: SPL tokens with amount=1, decimals=0).
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py \
nft 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWMNote: Compressed NFTs (cNFTs) are not detected by this heuristic.
6. Whale Detector
Scan the most recent block for large SOL transfers with USD values.
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py \
whales --min-sol 500Note: scans the latest block only — point-in-time snapshot, not historical.
7. Network Stats
Live Solana network health: current slot, epoch, TPS, supply, validator
version, SOL price, and market cap.
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py stats8. Price Lookup
Quick price check for any token by mint address or known symbol.
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py price BONK
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py price JUP
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py price SOL
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py price DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263Known symbols: SOL, USDC, USDT, BONK, JUP, WETH, JTO, mSOL, stSOL,
PYTH, HNT, RNDR, WEN, W, TNSR, DRIFT, bSOL, JLP, WIF, MEW, BOME, PENGU.
---
Pitfalls
- CoinGecko rate-limits — free tier allows ~10-30 requests/minute.
Price lookups use 1 request per token. Wallets with many tokens may
not get prices for all of them. Use --no-prices for speed.
- Public RPC rate-limits — Solana mainnet public RPC limits requests.
For production use, set SOLANA_RPC_URL to a private endpoint
(Helius, QuickNode, Triton).
- NFT detection is heuristic — amount=1 + decimals=0. Compressed
NFTs (cNFTs) and Token-2022 NFTs won't appear.
- Whale detector scans latest block only — not historical. Results
vary by the moment you query.
- Transaction history — public RPC keeps ~2 days. Older transactions
may not be available.
- Token names — ~25 well-known tokens are labeled by name. Others
show abbreviated mint addresses. Use the token command for full info.
- Retry on 429 — both RPC and CoinGecko calls retry up to 2 times
with exponential backoff on rate-limit errors.
---
Verification
# Should print current Solana slot, TPS, and SOL price
python ~/.hermes/skills/blockchain/solana/scripts/solana_client.py statsSkill liên quan
- domain-authority-simulator – Domain Authority Simulator. Dùng khi làm việc với tín hiệu domain và một rubric chấm…
- domain-comparison-report-tool – Domain Comparison Report Tool. Dùng khi làm việc với hai hoặc nhiều domain có chỉ số so…
- domain-modeling – Xây dựng và hoàn thiện mô hình miền của dự án. Dùng khi người dùng muốn chốt thuật ngữ…
- doom-pay – Thêm liên kết thanh toán DOOM và wDOOM tự lưu ký với DoomPay, rồi xác minh biên nhận…
- songwriting-and-ai-music – Kỹ thuật sáng tác ca từ và prompt tạo nhạc AI với Suno.
- spike – Thử nghiệm dùng-rồi-bỏ để kiểm chứng ý tưởng trước khi xây dựng.
- stocks – Báo giá cổ phiếu, lịch sử, tìm kiếm, so sánh, tiền mã hóa qua Yahoo.
- earllm-build – Xây dựng, bảo trì và mở rộng dự án Android EarLLM One — ứng dụng Kotlin/Compose kết nối…