您專屬的 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 次 |
| 使用分析 | 無 | 每鏈,每日 |