TheGraph
Choose a Subgraph
Choose a subgraph you want to query through TheGraph. A list of subgraph can be found here.
After clicking on any of the subgraphs. The url path for query to the subgraph can be found at
To use the marlin cache use the url http://graph.marlin.pro/<QUERY_URL>
.
Make requests
Using the url selected above, requests can be made to the blockchain network as below
curl -X POST \
-H "Content-Type: application/json" \
--data '{"query": "{domains(first:1) {id}}"}' \
http://graph.marlin.pro/subgraphs/name/ensdomains/ens
The response will be something like
{"data":{"domains":[{"id":"0x0000000000000000000000000000000000000000000000000000000000000000"}]}}