Foundational API (REST) Errors
The Foundational API returns standard HTTP status codes along with a JSON error body.| Code | Name | Common Cause |
|---|---|---|
400 | Bad Request | Malformed parameters, invalid address format |
401 | Unauthorized | Missing or incorrect API key |
402 | Payment Required | Credits exhausted — enable Flex Credits or upgrade tier |
403 | Forbidden | API key is valid but not authorized for the resource |
404 | Not Found | Unsupported chain, invalid endpoint |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server-side failure |
503 | Service Unavailable | Maintenance or outage |
Streaming API (GraphQL/WebSocket) Errors
Authentication errors in the Streaming API are returned as GraphQL errors with specific extension codes:| Code | Description |
|---|---|
MISSING_TOKEN | No API key was provided in the connection_init payload. |
INVALID_TOKEN | The provided API key is malformed or invalid. |
AUTH_SYSTEM_ERROR | An internal server error occurred during authentication. |
Auth errors only surface when a subscription starts, not on WebSocket connect. The server always sends a
connection_ack response regardless of whether the API key is valid. You will only discover an invalid key when you attempt to subscribe.Rate Limits
The Foundational API enforces rate limits based on your plan tier:| Plan | Rate Limit | API Credits |
|---|---|---|
| 14-day Free Trial | 4 RPS | 25,000 |
| Vibe Coding ($10/mo) | 4 RPS | 10,000 |
| Professional ($250/mo) | 50 RPS | 300,000 |
| Inner Circle | Custom (up to 100+ RPS) | Custom SLA |
429 Too Many Requests response. Back off and retry using the strategies below.
Retry Strategies
Exponential Backoff with Jitter
For transient errors (429, 500, 503), implement exponential backoff with random jitter to avoid thundering herd problems.
SDK Built-in Retries
The GoldRush TypeScript Client SDK handles retries and rate limiting automatically — no manual retry logic needed when using the SDK.Streaming Reconnection
The GoldRush Client SDK manages WebSocket reconnection automatically. If you’re using a customgraphql-ws client, configure the shouldRetry option:
Debugging Tips
Verify your API key format
Verify your API key format
GoldRush API keys follow the pattern
cqt_wF... or cqt_rQ... (26 base58 characters after the prefix). Double-check for trailing whitespace or truncation.Check supported chains
Check supported chains
A
404 error often means the chain is unsupported. See Supported Chains for the full list.Inspect the full error body
Inspect the full error body
Don’t rely on the HTTP status code alone. The JSON response body contains an
error_message field with specific details about what went wrong.Test with curl or websocat
Test with curl or websocat
Isolate issues from your application code by testing directly:For the Streaming API, use websocat — see the Streaming API Authentication guide for setup steps.
Monitor credit usage
Monitor credit usage
Track your API credit consumption on the GoldRush Platform dashboard to avoid unexpected
402 errors.Contact support for persistent 500/503 errors
Contact support for persistent 500/503 errors
If you’re consistently hitting
500 or 503 errors, reach out to [email protected] with your API key prefix, the endpoint, and timestamps of the failures.