Base URL
https://kwery-api.com
| Surface | Path |
|---|
| JSON-RPC | POST /rpc |
| REST | /v1/* |
Authentication
| Method | Use |
|---|
X-API-Key header | Recommended for production |
api_key query parameter | Quick tests only |
curl -X POST "https://kwery-api.com/rpc" \
-H "Content-Type: application/json" \
-H "X-API-Key: kwery_live_YOUR_KEY" \
-d '{"jsonrpc":"2.0","id":1,"method":"getBlockDagInfo","params":{}}'
JSON-RPC errors
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32000,
"message": "Rate limit exceeded"
}
}
REST errors
{
"detail": {
"error": "api_key_paused",
"message": "API access is paused due to a past-due payment."
}
}