Overview
Request and response envelope
Successful responses wrap results in data, and failures return a structured error object.
Overview
Successful JSON responses wrap payloads in data:
json
{
"data": { /* endpoint-specific */ },
"meta": { "request_id": "req_…" }
}Errors
json
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing credentials.",
"retryable": false
}
}Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.
| Code | HTTP | When |
|---|---|---|
| unauthorized | 401 | Missing or invalid credentials |
| invalid_argument | 400 | Bad query, body, or chain id |
| plan_chain_denied | 403 | Chain not on plan |
| chain_disabled | 403 | Chain disabled in Console |
| unsupported_capability | 400 | Feature not available (e.g. testnet prices) |
| credits_exhausted | 402 | The organization has used its credit allowance |
| plan_feature_denied | 403 | Your plan does not include this feature |
| insufficient_funds | 400 | Transaction rejected: balance too low for the amount and fee |
| fee_too_low | 400 | Transaction rejected: fee too low — rebuild with a higher fee |
| tx_expired | 400 | Transaction expired before it was accepted — rebuild and sign again |
| nonce_conflict | 409 | Nonce, sequence or inputs already used — rebuild and sign again |
| already_broadcast | 409 | This signed transaction was already submitted |
| rate_limit_exceeded | 429 | Requests per minute for your plan reached (per project) — retry with backoff (retryable) |
| provider_unavailable | 503 | A network data service is temporarily unavailable (retryable) |
json
{
"error": {
"code": "unauthorized",
"message": "Human-readable detail (may be sanitized).",
"retryable": false
}
}Each endpoint page lists route-specific codes. See Your first API call in Get started. Log the x-request-id response header and include it when you contact support.