- Create an API key in Subgraph Studio
- Search
<API_KEY>in this repo and replace all<API_KEY>'s' with your new API Key - Send your demo queries!
https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/CBf1FtUKFnipwKVm36mHyeMtkuhjmh4KHzY3uWNNq5ow
The demo query retrieves the top 10 accounts where the total supply is greater than 500.
{
collections(first: 10, where: { totalSupply_gt: "500" }) {
id
name
symbol
totalSupply
}
}cd vanilla-js-queryopen javascriptQuery.html
cd flask-querypip install Flask requestspython app.py- Open the development server that appears in the terminal to see the query response: (http://127.0.0.1:5000)
See this excellent walkthrough video for an overview of graph-client
cd graph-client-querynpm installnpm run startto send our test query and see responses in the terminal.- To send test queries through our browser, run
npm run devto set up GraphQL explorer. - To integrate graph-client into our dapp, run
npm run codegento build an a new SDK.
cd react-apollo-querynpm installnpm run startto send test query and see responses at http://localhost:3000


