Solana RPC — Live On-Chain Data Toolkit
8-command CLI for live Solana data. Uses only Python stdlib + free public endpoints.
No pip install required. Optional HELIUS_API_KEY unlocks compressed NFT detection.
Commands
| Command |
Args |
Description |
wallet |
<address> |
SOL balance + SPL token portfolio with USD values |
tx |
<signature> |
Transaction detail: status, fee, balance changes, programs |
token |
<mint|symbol> |
SPL token: decimals, supply, price, top 5 holders |
activity |
<address> |
Recent tx history (default 10, max 25) |
nft |
<address> |
SPL NFTs + cNFTs (requires HELIUS_API_KEY) |
whales |
[--min-sol N] |
Large SOL transfers in latest block (default 500 SOL) |
stats |
— |
Slot, epoch, TPS, circulating supply, SOL price, version |
price |
<mint|symbol> |
Price, 24h/7d %, market cap, volume (via CoinGecko) |
Setup
# Copy the script (no install needed beyond Python 3)
cp ai-training/scripts/solana_client.py ~/.clawd/skills/solana-rpc/
# Optional: set a faster RPC (public mainnet used by default)
export SOLANA_RPC_URL="https://mainnet.helius-rpc.com/?api-key=YOUR_KEY"
# Optional: Helius DAS for compressed NFT (cNFT) support
export HELIUS_API_KEY="your-helius-api-key"
Usage
SCRIPT="python3 ~/.clawd/skills/solana-rpc/solana_client.py"
# Network health
$SCRIPT stats
# Wallet overview (skips CoinGecko for speed)
$SCRIPT wallet 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM --no-prices
# Full wallet with USD values
$SCRIPT wallet 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
# Transaction details
$SCRIPT tx 5wHu1qwD7q5ifaN5nwLDTFPSfDd8Z5WtjnJPSFGbdDWX3XqxLPWRSLT1k4e4kZn6NvA
# SPL token — use known symbol or mint address
$SCRIPT token BONK
$SCRIPT token DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
# Recent activity
$SCRIPT activity 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM --limit 20
# NFT portfolio (SPL + cNFT if HELIUS_API_KEY set)
$SCRIPT nft 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
# Whale detector — default 500 SOL minimum
$SCRIPT whales --min-sol 1000
# Price lookup
$SCRIPT price SOL
$SCRIPT price JUP
Known Symbols
The token and price commands accept 25+ known symbols directly:
SOL, USDC, USDT, BONK, JUP, WIF, MEW, JTO, PYTH,
WEN, DRIFT, TNSR, BOME, PENGU, WETH, mSOL, stSOL,
bSOL, JLP, HNT, RNDR, W, CLAWD, and more.
Environment Variables
| Variable |
Required |
Description |
SOLANA_RPC_URL |
No |
Override public mainnet RPC. Helius/QuickNode recommended for production. |
HELIUS_API_KEY |
No |
Enables Helius DAS for cNFT detection in the nft command. |
Rate Limits
- Public Solana RPC: ~100 req/s (sufficient for all commands)
- CoinGecko free tier: 30 req/min —
wallet adds a 100ms delay per token to stay within limits
- Use
--no-prices flag on wallet to skip CoinGecko entirely
Integration with Clawd Agents
This script is also registered in ai-training/scripts/solana_client.py and
is used as training data for the Clawd SFT pipeline. Agents can call it as a
subprocess tool:
import { execSync } from 'child_process'
const solana = (cmd: string) =>
execSync(`python3 ~/.clawd/skills/solana-rpc/solana_client.py ${cmd}`, { encoding: 'utf8' })
const stats = solana('stats')
const wallet = solana(`wallet ${address} --no-prices`)
Data Sources
| Source |
Used by |
Notes |
| Solana public RPC |
All commands |
Default: api.mainnet-beta.solana.com |
| CoinGecko free API |
wallet, token, price, stats |
No key needed, rate-limited |
| Helius DAS |
nft (optional) |
Requires HELIUS_API_KEY |
1---2name: solana-rpc3description: >4 Solana RPC data toolkit — 8-command CLI for live on-chain data: SOL balance +5 SPL token portfolio with USD values, transaction detail with balance changes,6 SPL token metadata + top holders, recent activity history, NFT portfolio7 (SPL + cNFT via Helius DAS), whale detector, network stats (TPS/epoch/price),8 and quick price lookup. Pure Python stdlib, no extra packages. Optional9 HELIUS_API_KEY for compressed NFT detection.10homepage: https://github.com/solanaclawd/solana-clawd11metadata:12 source: https://skillmd.com/skills/solizardking/solana-rpc13 clawdbot:14 emoji: 🔗15 requires:16 bins:17 - python318 env: []19 optional_env:20 - SOLANA_RPC_URL21 - HELIUS_API_KEY22 install:23 - id: copy-script24 kind: shell25 cmd: |26 mkdir -p ~/.clawd/skills/solana-rpc27 cp ai-training/scripts/solana_client.py ~/.clawd/skills/solana-rpc/solana_client.py28 chmod +x ~/.clawd/skills/solana-rpc/solana_client.py29 label: Install solana-rpc client30attestation:31 verified: true32 verified_at: '2026-06-15'33 registries:34 - https://x402.wtf/skills/solana-rpc35---3637# Solana RPC — Live On-Chain Data Toolkit38398-command CLI for live Solana data. Uses only Python stdlib + free public endpoints.40No pip install required. Optional `HELIUS_API_KEY` unlocks compressed NFT detection.4142## Commands4344| Command | Args | Description |45|---------|------|-------------|46| `wallet` | `<address>` | SOL balance + SPL token portfolio with USD values |47| `tx` | `<signature>` | Transaction detail: status, fee, balance changes, programs |48| `token` | `<mint\|symbol>` | SPL token: decimals, supply, price, top 5 holders |49| `activity` | `<address>` | Recent tx history (default 10, max 25) |50| `nft` | `<address>` | SPL NFTs + cNFTs (requires `HELIUS_API_KEY`) |51| `whales` | `[--min-sol N]` | Large SOL transfers in latest block (default 500 SOL) |52| `stats` | — | Slot, epoch, TPS, circulating supply, SOL price, version |53| `price` | `<mint\|symbol>` | Price, 24h/7d %, market cap, volume (via CoinGecko) |5455## Setup5657```bash58# Copy the script (no install needed beyond Python 3)59cp ai-training/scripts/solana_client.py ~/.clawd/skills/solana-rpc/6061# Optional: set a faster RPC (public mainnet used by default)62export SOLANA_RPC_URL="https://mainnet.helius-rpc.com/?api-key=YOUR_KEY"6364# Optional: Helius DAS for compressed NFT (cNFT) support65export HELIUS_API_KEY="your-helius-api-key"66```6768## Usage6970```bash71SCRIPT="python3 ~/.clawd/skills/solana-rpc/solana_client.py"7273# Network health74$SCRIPT stats7576# Wallet overview (skips CoinGecko for speed)77$SCRIPT wallet 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM --no-prices7879# Full wallet with USD values80$SCRIPT wallet 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM8182# Transaction details83$SCRIPT tx 5wHu1qwD7q5ifaN5nwLDTFPSfDd8Z5WtjnJPSFGbdDWX3XqxLPWRSLT1k4e4kZn6NvA8485# SPL token — use known symbol or mint address86$SCRIPT token BONK87$SCRIPT token DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB2638889# Recent activity90$SCRIPT activity 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM --limit 209192# NFT portfolio (SPL + cNFT if HELIUS_API_KEY set)93$SCRIPT nft 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM9495# Whale detector — default 500 SOL minimum96$SCRIPT whales --min-sol 10009798# Price lookup99$SCRIPT price SOL100$SCRIPT price JUP101```102103## Known Symbols104105The `token` and `price` commands accept 25+ known symbols directly:106`SOL`, `USDC`, `USDT`, `BONK`, `JUP`, `WIF`, `MEW`, `JTO`, `PYTH`,107`WEN`, `DRIFT`, `TNSR`, `BOME`, `PENGU`, `WETH`, `mSOL`, `stSOL`,108`bSOL`, `JLP`, `HNT`, `RNDR`, `W`, `CLAWD`, and more.109110## Environment Variables111112| Variable | Required | Description |113|----------|----------|-------------|114| `SOLANA_RPC_URL` | No | Override public mainnet RPC. Helius/QuickNode recommended for production. |115| `HELIUS_API_KEY` | No | Enables Helius DAS for cNFT detection in the `nft` command. |116117## Rate Limits118119- Public Solana RPC: ~100 req/s (sufficient for all commands)120- CoinGecko free tier: 30 req/min — `wallet` adds a 100ms delay per token to stay within limits121- Use `--no-prices` flag on `wallet` to skip CoinGecko entirely122123## Integration with Clawd Agents124125This script is also registered in `ai-training/scripts/solana_client.py` and126is used as training data for the Clawd SFT pipeline. Agents can call it as a127subprocess tool:128129```typescript130import { execSync } from 'child_process'131const solana = (cmd: string) =>132 execSync(`python3 ~/.clawd/skills/solana-rpc/solana_client.py ${cmd}`, { encoding: 'utf8' })133134const stats = solana('stats')135const wallet = solana(`wallet ${address} --no-prices`)136```137138## Data Sources139140| Source | Used by | Notes |141|--------|---------|-------|142| Solana public RPC | All commands | Default: `api.mainnet-beta.solana.com` |143| CoinGecko free API | `wallet`, `token`, `price`, `stats` | No key needed, rate-limited |144| Helius DAS | `nft` (optional) | Requires `HELIUS_API_KEY` |