solana
它能做什么
它读取 Solana 公开的区块链数据,包括钱包、代币、交易、NFT 以及网络状况,价格以美元显示。它适合希望快速查看 Solana 链上情况的人。
适用场景
- ✓你想查看某个 Solana 钱包的余额或代币持仓的时候。
- ✓你想查找大额 SOL 转账或鲸鱼活动的时候。
- ✓你想查看 Solana 网络状况或某个代币价格的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/blockchain/solana/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“这个 Solana 钱包里所有代币的美元总价值是多少?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体运行一个辅助脚本,查询 Solana RPC 端点和 CoinGecko 价格。它只使用 Python 标准库,不需要 API 密钥。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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 stats
1. 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 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
Flags:
--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_here
Output: 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 DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
Output: 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 25
5. 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 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
Note: 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 500
Note: 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 stats
8. Price Lookup
Quick price check for any token by mint address or known symbol.
python ~/.hermes/skills/blockchain/solana/scripts/solana
常见问题
它需要 Solana 账户吗?
不需要。技能说明无需 API 密钥,默认使用公开端点。
为什么价格查询有时较慢?
技能指出 CoinGecko 的免费服务有速率限制,而不查询价格的选项可以让查询更快。
我可以使用自己的 RPC 服务器吗?
可以。你可以把 SOLANA_RPC_URL 环境变量设置为私有端点。
详情
热度
- GitHub 星标
- 260k
- 排名
- #448
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。