← ClaudeAtlas

solana-rpclisted

Direct Solana blockchain interaction via JSON-RPC — account lookups, token balances, transaction submission, and program queries
Serennity007/claude-trading-skills-67 · ★ 0 · AI & Automation · score 72
Install: claude install-skill Serennity007/claude-trading-skills-67
# Solana RPC — Direct Blockchain Interaction The Solana JSON-RPC API provides direct read/write access to the blockchain. Use it for account state queries, token balance lookups, transaction building and submission, and program account enumeration. This is the low-level foundation when higher-level APIs (Birdeye, Helius, SolanaTracker) don't have the data you need. ## Quick Start ```python import httpx RPC = os.getenv("SOLANA_RPC_URL", "https://api.mainnet-beta.solana.com") def rpc_call(method: str, params: list = None) -> dict: resp = httpx.post(RPC, json={ "jsonrpc": "2.0", "id": 1, "method": method, "params": params or [], }, timeout=30.0) return resp.json() # Get SOL balance result = rpc_call("getBalance", ["WALLET_PUBKEY"]) sol_balance = result["result"]["value"] / 1e9 # Get latest blockhash result = rpc_call("getLatestBlockhash") blockhash = result["result"]["value"]["blockhash"] ``` ## RPC Providers | Provider | Free Tier | Paid | Notes | |----------|-----------|------|-------| | Helius | 50K credits/day | $49+/mo | Enhanced RPCs, DAS API | | QuickNode | Limited | $49+/mo | Multi-chain, WebSocket | | Triton | No free tier | ~$300+/mo | Yellowstone gRPC bundled | | Shyft | Limited | $49+/mo | Yellowstone gRPC bundled | | Alchemy | 300M CU/mo | Scaling | Good free tier | | Public (mainnet-beta) | Free | — | Rate limited, unreliable | **Recommendation**: Use Helius or QuickNode for development. Never use public RPC for production trad