您专属的 JSON-RPC 端点,由本地运营的归档节点支持。不与公共 RPC 共享速率,无冷启动延迟,无不受控的中间件。
每5秒自动刷新 · —
curl -X POST \ -H "X-API-Key: rpc_YOUR_KEY_HERE" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \ "https://api.smartmoneyapi.com/rpc/v1/bsc"
密钥前缀为 rpc_ 且与Smart Money API数据密钥相互独立。密钥仅在创建时显示一次,请妥善保存。
curl -X POST \ -H "X-API-Key: rpc_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \ "https://api.smartmoneyapi.com/rpc/v1/bsc" // 响应: {"jsonrpc":"2.0","result":"0x286c1b2","id":1}
curl -X POST \ -H "X-API-Key: rpc_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0xYOUR_ADDRESS","latest"],"id":1}' \ "https://api.smartmoneyapi.com/rpc/v1/avax-c"
curl -X POST \ -H "X-API-Key: rpc_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '[ {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}, {"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":2}, {"jsonrpc":"2.0","method":"net_version","params":[],"id":3} ]' \ "https://api.smartmoneyapi.com/rpc/v1/bsc" // 批量中的每个调用都会计入配额。
curl -X POST \ -H "X-API-Key: rpc_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"info.isBootstrapped","params":{"chain":"C"},"id":1}' \ "https://api.smartmoneyapi.com/rpc/v1/avax-info"
curl "https://api.smartmoneyapi.com/rpc/v1/health" // 返回: {"chains":{"bsc":{"ok":true,"block":42000000,"ms":45}, ...}}
出于安全和性能考虑,所有EVM链上禁止调用以下前缀的方法。相关请求将返回 -32601 错误。
仅允许 info.* 方法。所有其他命名空间返回 -32601 错误。
| HTTP | JSON-RPC代码 | 含义 |
|---|---|---|
| 401 | -32001 | 缺失或无效的API密钥 |
| 429 | -32005 | 超过速率限制(每分钟或每日)。检查 Retry-After 头部。 |
| 413 | -32600 | 请求体超过1 MB |
| 403 | -32601 | 被阻止或不允许的方法 |
| 400 | -32700 | JSON解析错误 |
| 502 | -32002 | 上游节点不可达或超时 |
{"jsonrpc":"2.0","error":{"code":-32001,"message":"invalid api key"},"id":null}
付费计划密钥与Smart Money数据API密钥分开管理。通过仪表板联系我们升级现有RPC密钥。
| 功能 | 公共RPC | Smart Money RPC |
|---|---|---|
| 速率限制 | 共享,不可预测 | 每密钥专属 |
| 延迟 | 波动,冷启动 | 稳定,预热 |
| 正常运行时间SLA | 无保证 | 24/7监控 |
| 批量调用 | 常被阻止 | 每请求最多50次 |
| 使用分析 | 无 | 每链,每日 |