How to run index custom data?
To to deploy your subgraph on movement mevm devnet.
Step 1. Create Subgraph
Create your subgraph: https://thegraph.com/docs/en/developing/creating-a-subgraph/
Once done, Make sure to set network
to devnet
NOTE: Set your
network
todevnet
in yoursubgraph.yaml
file manually. It will not be listed in thegraph init
command because mevm is not yet supported by thegraph.
Your subgraph.yaml should look something like this:
NOTE: This is just an example no need to copy it as it is.
Step 2. Get AUTH TOKEN
from LYNC team
AUTH TOKEN
from LYNC teamGet your AUTH TOKEN from LYNC Team
Step 3. Set your AUTH TOKEN
to prepare for deployment
AUTH TOKEN
to prepare for deploymentIn your subgraph directory run:
This will prompt you to enter your deploy key. Pass the AUTH TOKEN
in there.
Step 4: Create a new subgraph
Note: Replace the <PROJECT>/<NAME>
accordingly. Example lync/nfts
If you have properly setup the correct AUTH TOKEN
and subgraph name you should see output like this:
If you get any error(s) refer to the Troubleshooting section
Step 5: Deploy you created subgraph:
In the subgraph directory after completing the above steps run:
Note: Replace the <PROJECT>/<NAME>
accordingly. Example lync/nfts
If everything goes right you will see output like:
Note: Currently we do not have any validations on version label so it can be anything.
Also, you can ignore the HTTP queries endpoint that is shown in the output.
The subgraph will be deployed on:
Note: Replace the <PROJECT>/<NAME>
accordingly. Example lync/nfts
You can use this endpoint to query your subgraph data using graphql.
Troubleshooting
If while deploying the subgraph you face any errors like:
Here, take a look at the error code. 480
in the output above.
401
Request Unauthorized
470
Naming format not followed properly
The name of the subgraph should be in the format <PROJECT>/<NAME>
480
Name already taken
Reuse of the subgraph name is not allowed. Use a different name.
500
Internal Server error
Last updated