Using The Graph on Habtor

Using The Graph on Habtor

The Graph is an indexing protocol for organizing blockchain data and making it easily accessible (with a service called GraphQL). You can define contract of interest, set up The Graph to ingest events/data that you define, and you can then obtain these data through GraphQL.

Indexing and Main Endpoints - Habtor Graph Node

Mainnet endpoint: https://graph.mainnet.habtor.com

Port

Purpose

Routes

URL

Permission

8000

GraphQL HTTP server

/subgraphs/name/.../...

https://graph.mainnet.habtor.com https://graph.mainnet.habtor.com:8000

Public

8020

JSON-RPC (for managing deployments)

/

https://graph.mainnet.habtor.com:8020

Private

8030

Subgraph indexing status API

/graphql

https://graph.mainnet.habtor.com:8030

Public

8040

Prometheus metrics

/metrics

https://graph.mainnet.habtor.com:8040

Public

Testnet endpoint: https://graph.testnet.habtor.com

Port

Purpose

Routes

URL

Permission

8000

GraphQL HTTP server

/subgraphs/name/.../...

https://graph.testnet.habtor.com https://graph.testnet.habtor.com:8000

Public

8020

JSON-RPC (for managing deployments)

/

https://graph.testnet.habtor.com:8020

Private

8030

Subgraph indexing status API

/graphql

https://graph.testnet.habtor.com:8030

Public

8040

Prometheus metrics

/metrics

https://graph.testnethabtor.com:8040

Public

NOTE - JSON RPC: The RPC endpoint https://graph.mainnet.habtor.com:8020 is private. To use it, please tell us your IP addresses and we will open it up for you.

Examples

Subgraph examples are given in the main repo at https://github.com/habtorcom/optimism-v2/tree/develop/packages/boba/subgraph

Creating and Deploying Subgraphs

  • Create subgraph

  • Deploy subgraph

Issues

If you have issues, contact us on Discord.

Last updated