Using The Graph
GoldSky is an easy to use alternative to The Graph for indexing on-chain data.
Official Subgraphs
1. Lightbridge
2. DAO
Deploy your own Subgraphs
The goldsky
-CLI is required to deploy to GoldSky. Make sure that you have various packages installed. Please refer to the official documentation.
The Graph
If you are using The Graph right now, you can easily migrate your existing subgraphs over to Goldsky. The official GoldSky documentation is very helpful in that matter.
First you need to login to your GoldSky account:
Then you can deploy your subgraph in one of the following ways (taken from the official GoldSky docs):
Build and deploy from source
Migrate from The Graph's hosted service
Migrate from any existing endpoint
Build and deploy from ABI + contract address
NOTE: When you log into https://thegraph.com/hosted-service/dashboard, you may have more than one account. Make sure that you are using the ACCESS_TOKEN associated with the correct account, otherwise your depoyment will fail. You can cycle through your multiple accounts by clicking on your GitHub user ID or whatever other account is displayed next to your user Avatar.
Here is some example queries to get you started:
To get the endpoints you can either login on the official GoldSky dashboard or use the following command:
Last updated