Solana JSON RPC
提供多种与 Solana 区块链交互的端点
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 加密货币
简介
Solana 的 JSON-RPC API 查询 Solana 区块链——余额、区块和交易。它是仅 POST 的 RPC(GET 返回信息页,已实测)。
快速开始
发送 JSON-RPC POST(公开主网端点是 Triton One 运营的):
curl -X POST "https://api.mainnet-beta.solana.com" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "getBalance", "params": ["11111111111111111111111111111111"]}'
{ "jsonrpc": "2.0", "result": { "context": { "slot": 123456789 }, "value": 0 }, "id": 1 }
认证方式
公开 RPC 无需认证(有限流);生产用付费 RPC 提供商。
速率限制与注意事项
- 免费公开 RPC 带限流(请礼貌使用)。
- 方法:
getBalance、getSlot、getBlock、getTransaction、getTokenAccountsByOwner。 - 主机是负载均衡 RPC(Triton One,GET 信息页 200 已实测)。
常见问题
Solana RPC 免费吗? 公开 RPC 免费带限流;提供商有付费档。
请求格式是什么? JSON-RPC 2.0 POST(已实测)。
可以查询什么? 余额、槽位、区块、交易和代币。
加密货币 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 0x API for querying token and pool stats across various liquidity pools | No auth | Yes | Yes | ↗ |
| 1inch API for querying decentralize exchange | No auth | Yes | Unknown | ↗ |
| Alchemy Ethereum Ethereum Node-as-a-Service Provider | API Key | Yes | Yes | ↗ |
| Alpha (Mossland) Korean crypto channel stance + RAG Q&A + canonical entity/topic/event store | No auth | Yes | Yes | ↗ |
| Binance Exchange for Trading Cryptocurrencies based in China | API Key | Yes | Unknown | ↗ |