Ang iyong sariling JSON-RPC endpoint, suportado ng lokal na pinapatakbong archive nodes. Walang pagbabahagi ng rate sa mga pampublikong RPC, walang latency sa cold-start, walang middleware na hindi mo kontrolado.
Awtomatikong nag-refresh tuwing 5 segundo · —
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"
Ang mga key ay may prefix na rpc_ at hiwalay sa iyong Smart Money API data keys. Ang mga key ay ipinapakita lamang isang beses sa paggawa — itago ang mga ito nang ligtas.
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" // Response: {"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" // Ang bawat call sa batch ay kasama sa iyong quota.
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" // Returns: {"chains":{"bsc":{"ok":true,"block":42000000,"ms":45}, ...}}
Para sa seguridad at performance, ang mga sumusunod na method prefix ay blokeado sa lahat ng EVM chains. Ang mga request na gumagamit ng mga ito ay magbabalik ng -32601 error.
Tanging info.* mga method ang pinapayagan. Lahat ng iba pang namespaces ay magbabalik ng -32601 error.
| HTTP | JSON-RPC code | Kahulugan |
|---|---|---|
| 401 | -32001 | Nawawala o hindi balidong API key |
| 429 | -32005 | Na-exceed ang rate limit (rpm o daily). Tingnan ang Retry-After header. |
| 413 | -32600 | Lampas sa 1 MB ang request body |
| 403 | -32601 | Blocked o hindi pinapayagang method |
| 400 | -32700 | JSON parse error |
| 502 | -32002 | Hindi maabot o nag-time out ang upstream node |
{"jsonrpc":"2.0","error":{"code":-32001,"message":"invalid api key"},"id":null}
Ang mga paid plan key ay hiwalay na pinamamahalaan sa mga Smart Money data API key. Makipag-ugnayan sa amin sa pamamagitan ng dashboard para i-upgrade ang existing na RPC key.
| Feature | Public RPC | Smart Money RPC |
|---|---|---|
| Rate limits | Shared, unpredictable | Dedicated per key |
| Latency | Variable, cold-start | Consistent, warm |
| Uptime SLA | Walang garantiya | Monitored 24/7 |
| Batch calls | Madalas na blocked | Hanggang 50 bawat request |
| Usage analytics | Wala | Per-chain, per-day |