The Graph
The Graph is an indexing protocol for organizing blockchain data and making it easily accessible with GraphQL.
Last updated
The Graph is an indexing protocol for organizing blockchain data and making it easily accessible with GraphQL.
Last updated
Fractal Network has hosted a Graph Node server to empower developers to build dApps on the Fractal chain. Subgraphs can be deployed and updated using a pull request (see below for instructions).
Graph node is an opensource Rust implementation that indexes the blockchain to deterministically update a datastore that can be queried via the GraphQL endpoint.
Check out the Graph Node for detailed instructions and more context.
This example will walk you through the steps to create a new subgraph and test it on a local node on your machine.
1- Clone .
2- Generate base types from your schema.graphql
settings.
3- Edit event mappings, such as src/handleFRC721Transfer.ts
in the example directory.
4- After editing, compile them to web assembly files:
2- Start graph-node:
3- Create a new subgraph edge:
4- Deploy your subgraph:
When you've tested your subgraph locally, you can now submit it to be deployed on the Findora mainnet node. This is done by submitting a pull request.
2- Copy the FindoraNetwork/
directory and rename the root directory to be the same as your github handle.
3- Create a pull request and follow the template instructions before submitting your PR.
4- Your subgraph will be deployed upon review and made available at https://graph.findora.org/subgraphs/name/<github-handle>/<your-subgraph>/graphql
To update an existing subgraph, you may simply create another PR with you modifications.
PRs may only modify one directory at a time.
1- Install on your machine.
5- Browse to explore.
1- Fork
e.g.