Getting started for the Hosted Service
Deploying a Subgraph to the Hosted Service.
After having deployed a subgraph locally, we will focus in the following on deploying a subgraph to The Graph’s Hosted Service. As a prerequisite, you will need an account on The Graph’s Explorer. From here, subgraphs can be created through the UI. The subgraphs created on the explorer can be deployed through your terminal.
Ethereum testnets are supported by The Graph Node aside from The Graph’s mainnet.
The second prerequisite is to add a new subgraph in your dashboard. You can do this by visiting
/explorer/dashboard on The Graph’s Explorer and clicking on
Add Subgraph. Save the new subgraph and you’re ready to go.
Before we start, let’s have a quick look at the steps covered in this guide:
1. Installing Graph CLI
2. Setting up an example subgraph
3. Authenticating with the Hosted Service
4. Using the subgraph in a dApp