Developers Forum for XinFin XDC Network

Cover image for Graph Node Integration
Robert Aronovici
Robert Aronovici

Posted on

Graph Node Integration

Graph Node can ingest blockchain data using two different APIs:

  • Ethereum JSON RPC found in EVM-based chains. See the requirements and how to get started on the page below.

    Graph Node EVM JSON RPC API Integration Details and Cookbook

  • Firehose gRPC. Firehose is a blockchain data indexing solution using a files-based and streaming-first approach. Specific documentation for integrators is here.

    • If the chain does not expose an EVM JSON-RPC API, the integration should start with a Firehose instrumentation of the underlying node. StreamingFast’s documentation is a great start.
    • Firehose instrumentation is always recommended, as that’s a requirement for substreams.

I'd recommend starting with the EVM JSON RPC approach for subgraph support. Here are the requirements and a cookbook for a quick integration test (with an example contract and subgraph): https://www.notion.so/thegraphfoundation/Graph-Node-EVM-JSON-RPC-API-Integration-Details-and-Cookbook-3328df9ec6044b2fa4c08c50061d1766

https://t.me/pedro_the_graph

Discussion (1)

Collapse
cryptosandtokens profile image
Robert Aronovici Author

Have any developers or engineers setup and integrated The Graph yet? A lot of potential to tap into for both projects...