Graphcast is a decentralized, distributed peer-to-peer (P2P) communication tool that allows Indexers across the network to exchange information in real-time. This registry subgraph allows a user to query the registry contract and observe the indexer-to-graphcastID relationship using The Graph.
To see the full idea behind Graphcast, you can check out the GRC for it.
Network | Registry Contract | Subgraph Playground | Subgraph API |
---|---|---|---|
Ethereum-mainnet | 0x89f97698d6006f25570cd2e31737d3d22aedcbcf | Link | Link |
Ethereum-goerli | 0x26ebbA649FAa7b56FDB8DE9Ea17aF3504B76BFA0 | Link | Link |
Arbitrum-one | 0xfae79e8cb8fbac2408e5baf89262bd92b6ca464a | Link | Link |
Arbitrum-sepolia | 0x17c3a072E5b1B2c260C29D289ee2E7372b8f7C69 | Link | Link |
This subgraph provides information on both the Indexer registration status and the GraphcastID registration status, specifically mapping the indexer registered on The Graph service registry contract to GraphcastID registered on the Graphcast registry contract.
You can try out the subgraph at the explorer playground.
Following the subgraph schema, you can make example queries such as below
query indexer(id:"0xe9a1cabd57700b17945fd81feefba82340d9568f"){
graphcastID
}
indexers(where:{graphcastID:"0x2bc5349585cbbf924026d25a520ffa9e8b51a39b"}){
id
graphcastID
registeredAtTimestamp
registeredAtTransaction
unregisteredAtBlock
}
serviceRegistereds(first: 5) {
indexer
blockNumber
}
ownershipTransferreds(first: 5) {
blockNumber
owner
}
Follow the Graph How to create a subgraph guide to develop and deploy the subgraph.
We welcome and appreciate your contributions! Please see the Contributor Guide, Code Of Conduct and Security Notes for this repository.