πSubGraph
Developers can create their own SubGraph and create a pull-request of their ipfs_hash and deployed.
REI GraphQL
REI has provided The Graph, a decentralized protocol for indexing and querying data from blockchains.
Endpoint: https://rei-graph.moonrhythm.io/
To learn more about The Graph, here is the official document.
Pre-requisite
The Graph CLI:
npm install -g @graphprotocol/graph-cliIPFS: A peer-to-peer hypermedia protocol designed to preserve and grow humanity's knowledge by making the web upgradeable, resilient, and more open.
Get Started
Init graph from contract
graph init --product hosted-service --from-contract 0xC437190E5c4F85EbBdE74c86472900b323447603Protocol - ethereum
Name - In format
[group]/[name]It will be part of endpoint/name/foodcourt/factory/Ethereum network - any (will edit later)
After successfully generate the project, the following structure are generated
- abis
- src
- mapping.ts
- package.json
- schema.graphql
- subgraph.yaml
- tsconfig.jsonReplace network value
Run codegen to get generated folder
Run build and upload to ipfs server to get hash
Next, create a pull-request to https://github.com/moonrhythm/rei-graph

After deploy and indexing is done, you should get endpoint like this to query your analytics data
https://rei-graph.moonrhythm.io/subgraphs/name/foodcourt/factory/graphql
Last updated
Was this helpful?