Curator Trick – Website Inspection.

Let’s have a quick look at this helpful method that allows you to find out which subgraph is queried by a website.

You can verify if a website is querying a Subgraph hosted on the decentralized network of The Graph by visiting the website and opening the developer console.

To do so, right click on the page, search for Inspect Element on the bottom of the navigation menu, switch to the Network Tab, click on the search window and search for the term “thegraph.com.” Be sure that the XHR requests filter is activated. If not, turn it on an reload the page.

You can then verify if the query address that is returned from the XHR search is the same one as on the decentralized mainnet. To do so, visit the Subgraph in The Graph Explorer, navigate to Query URL and click on the Copy button next to it. Doing so will show you what the query request should look like. You can then use this information to verify it with the search results from above.

Step-By-Step Example.

Let’s have a look how all of this works with the following step-by-step example of Livepeer. On the Livepeer.org website, right click anywhere on the interface and click on Inspect Element.

Next, find the navigation menu and switch to the Network Tab. Be sure that the XHR requests filter is activated:

Click on the search window and search for the term “thegraph.com.” You can now reload the page.

You can then verify if the query address that is returned from the XHR search is the same one as on the decentralized mainnet. To do so, visit the Subgraph in The Graph Explorer, navigate to Query URL and click on the Copy button next to it. Doing so will show you what the query request should look like. You can then use this information to verify it with the search results from above.

Summary

Verifying which subgraph is queried by a particular website can be helpful when seeking to learn more about a particular subgraph.

Graph God

Web2 Dev.

This tutorial is based on the explanations shared by community member GraphGod.
Aside from being an active Curator, GraphGod is a Web2 Dev., Cheerleader for #web3 infra, and a Curation Station Member. You can find GraphGod on Twitter.

Go Back

Curator Knowledge Hub

Up next

Curation risks