End-to-end guide for authenticating with the GoldRush Foundational API.
This document provides a comprehensive overview of the authentication process for the Foundational API. All APIs are protected and require a valid GoldRush API key to access. This guide covers how to obtain and use an API key, with examples for both our SDKs and direct REST API calls.
Authentication is essential to ensure that only authorized users can access the Foundational API. It allows us to manage access, track usage for billing, and ensure the security and stability of our services.
To begin, register for an API key at the GoldRush Platform. This key will be required for all requests to the Foundational API.
The Foundational API offers flexible and powerful ways to access blockchain data. You can use one of our GoldRush SDKs for a streamlined experience, or make direct HTTP requests to the various REST APIs.
For easier integration and to take advantage of built-in features like automatic retries and rate limit handling, we recommend using the TypeScript Client SDK.
Initialize the client with your API key:
You can also authenticate by including your API key in direct HTTP requests.
Basic Authentication
Provide your API key as the Basic Auth username. You do not need to provide a password. The trailing colon (:
) prevents curl
from prompting for a password.
Bearer Token
Provide your API key in an Authorization
header with the Bearer
scheme.
Query Parameter
Include your API key as the key
query parameter in the request URL.
If an authentication-related error occurs, the API will return a 4XX
HTTP status code and a JSON body with details.
Code | Description |
---|---|
401 - Unauthorized | No valid API key was provided, or the key is incorrect. |
402 - Payment Required | The account has consumed its allocated API credits. |
429 - Too Many Requests | You are being rate-limited. |
Which authentication method should I use?
Where can I find my API Key?
Are the API keys the same for the different GoldRush products?