Usage
Last updated
Last updated
Example on how to use a simple subgraph request
Go to the subgraph explorer:
Decide what you want to query. For this example, we want to see how much SOV each user has voluntarily staked on the Staking contract.
Use the schema explorer to find the correct entities to query:
Write your query in the left-hand column of the explorer. Read the GraphQL or Graph Protocol documentation for help with the graphQL syntax
Run your query. Take a look at the results:
Edit query if needed. This result probably isn’t what you were looking for - here we are listing all users in alphabetical order by wallet address, even if they do not have any voluntarily staked SOV. We can change the query to this:
This query returns results only for users who have voluntarily staked SOV, and orders the results with the largest current SOV staked amount first.