Quickstart user guide for DataHub
Creating an Account
Step 1: Users are able to sign up on DataHub and select the network they will be building on. When completed, you will receive an invite link which looks something like this example - https://datahub.figment.io/users/confirm?token=$NumbersAndLetters.
Step 2: Click on this link and you will be redirected to the DataHub website where you will be redirected to your network’s services page.
Step 1: After logging in, you will see all the services that you are currently subscribed to. In the screenshot below, you can see Celo Alfajores and Mainnet RPC.
Step 2: You are then able to click on the Documentation button to get more info regarding the integration.
Accessing a Network
Step 1: When clicking on the Documentation button, you will be provided with the URL for this service. This URL should be a drop in replacement for any other full node URL you are currently using with the addition of the DataHub API key to access it.
Step 2: Depending on your setup, there are two ways to use your API key.
1. You can specify your API key with the Authorization header and below is a curl example.
2. You can specify your API key as a prefix to the path like,
/apikey/YOUR_API_KEY/the/pathand below is a curl example.
Step 3: Documentation for all available endpoints for each network can be found linked within DataHub page for each network.
Managing API Keys
Step 1: Each service has a unique API key. When required, a user can rotate the API by clicking the rotate button within a service group. This will display a new “API Key” and also the “Old Key”. To help with a smooth release process, both keys will be valid until the Old Key is removed by clicking the remove button.