Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 3.52 KB

009_The-Graph.md

File metadata and controls

51 lines (34 loc) · 3.52 KB
description
Using The Graph on Boba

Using The Graph on Boba

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 - Boba Graph Node

Mainnet endpoint: https://graph.mainnet.boba.network

Port Purpose Routes URL Permission
8000 GraphQL HTTP server /subgraphs/name/.../...

https://graph.mainnet.boba.network
https://graph.mainnet.boba.network:8000

Public
8020

JSON-RPC
(for managing deployments)

/ https://graph.mainnet.boba.network:8020 Private
8030 Subgraph indexing status API /graphql https://graph.mainnet.boba.network:8030 Public
8040 Prometheus metrics /metrics https://graph.mainnet.boba.network:8040 Public

Rinkeby endpoint: https://graph.rinkeby.boba.network

Port Purpose Routes URL Permission
8000 GraphQL HTTP server /subgraphs/name/.../...

https://graph.rinkeby.boba.network
https://graph.rinkeby.boba.network:8000

Public
8020

JSON-RPC
(for managing deployments)

/ https://graph.rinkeby.boba.network:8020 Private
8030 Subgraph indexing status API /graphql https://graph.rinkeby.boba.network:8030 Public
8040 Prometheus metrics /metrics https://graph.rinkeby.boba.network:8040 Public

NOTE - JSON RPC: The RPC endpoint https://graph.mainnet.boba.network: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/omgnetwork/optimism-v2/tree/develop/packages/boba/subgraph

Creating and Deploying Subgraphs

  • Create subgraph
graph create --node https://graph.mainnet.boba.network:8020 PREFIX/NAME
  • Deploy subgraph
graph deploy --ipfs https://graph.mainnet.boba.network:5001 --node https://graph.mainnet.boba.network:8020 PREFIX/NAME

Issues

If you have issues, contact us on Discord.