1+ schema {
2+ query : Query
3+ }
4+
5+ type ApiVersion {
6+ """
7+ Version number in SemVer format
8+
9+ """
10+ version : String !
11+ }
12+
13+ scalar BigInt
14+
15+ type Block {
16+ hash : Bytes !
17+ number : BigInt !
18+ }
19+
20+ input BlockInput {
21+ hash : Bytes !
22+ number : BigInt !
23+ }
24+
25+ scalar Bytes
26+
27+ type CachedEthereumCall {
28+ idHash : Bytes !
29+ block : Block !
30+ contractAddress : Bytes !
31+ returnValue : Bytes !
32+ }
33+
34+ interface ChainIndexingStatus {
35+ network : String !
36+ chainHeadBlock : Block
37+ earliestBlock : EarliestBlock
38+ latestBlock : Block
39+ lastHealthyBlock : Block
40+ }
41+
42+ scalar Date
43+
44+ type EarliestBlock {
45+ hash : Bytes !
46+ number : BigInt !
47+ }
48+
49+ type EntityChanges {
50+ updates : [EntityTypeUpdates ! ]!
51+ deletions : [EntityTypeDeletions ! ]!
52+ }
53+
54+ type EntityTypeDeletions {
55+ type : String !
56+ entities : [ID ! ]!
57+ }
58+
59+ type EntityTypeUpdates {
60+ type : String !
61+ entities : [JSONObject ! ]!
62+ }
63+
64+ type EthereumIndexingStatus implements ChainIndexingStatus {
65+ network : String !
66+ chainHeadBlock : Block
67+ earliestBlock : EarliestBlock
68+ latestBlock : Block
69+ lastHealthyBlock : Block
70+ }
71+
72+ enum Feature {
73+ nonFatalErrors
74+ grafting
75+ fullTextSearch
76+ ipfsOnEthereumContracts
77+ aggregations
78+ declaredEthCalls
79+ immutableEntities
80+ bytesAsIds
81+ }
82+
83+ enum Health {
84+ """Subgraph syncing normally"""
85+ healthy
86+ """Subgraph syncing but with errors"""
87+ unhealthy
88+ """Subgraph halted due to errors"""
89+ failed
90+ }
91+
92+ scalar JSONObject
93+
94+ type PartialBlock {
95+ hash : Bytes
96+ number : BigInt !
97+ }
98+
99+ input ProofOfIndexingRequest {
100+ deployment : String !
101+ block : BlockInput !
102+ }
103+
104+ type ProofOfIndexingResult {
105+ deployment : String !
106+ block : Block !
107+ """
108+ There may not be a proof of indexing available for the deployment and block
109+ """
110+ proofOfIndexing : Bytes
111+ }
112+
113+ input PublicProofOfIndexingRequest {
114+ deployment : String !
115+ blockNumber : BigInt !
116+ }
117+
118+ type PublicProofOfIndexingResult {
119+ deployment : String !
120+ block : PartialBlock !
121+ proofOfIndexing : Bytes !
122+ }
123+
124+ type Query {
125+ indexingStatusForCurrentVersion (subgraphName : String ! ): SubgraphIndexingStatus
126+ indexingStatusForPendingVersion (subgraphName : String ! ): SubgraphIndexingStatus
127+ indexingStatusesForSubgraphName (subgraphName : String ! ): [SubgraphIndexingStatus ! ]!
128+ indexingStatuses (subgraphs : [String ! ]): [SubgraphIndexingStatus ! ]!
129+ proofOfIndexing (subgraph : String ! , blockNumber : Int ! , blockHash : Bytes ! , indexer : Bytes ): Bytes
130+ """
131+ Proofs of indexing for several deployments and blocks that can be shared and
132+ compared in public without revealing the _actual_ proof of indexing that every
133+ indexer has in their database
134+
135+ """
136+ publicProofsOfIndexing (requests : [PublicProofOfIndexingRequest ! ]! ): [PublicProofOfIndexingResult ! ]!
137+ subgraphFeatures (subgraphId : String ! ): SubgraphFeatures !
138+ entityChangesInBlock (subgraphId : String ! , blockNumber : Int ! ): EntityChanges !
139+ blockData (network : String ! , blockHash : Bytes ! ): JSONObject
140+ blockHashFromNumber (network : String ! , blockNumber : Int ! ): Bytes
141+ version : Version !
142+ cachedEthereumCalls (network : String ! , blockHash : Bytes ! ): [CachedEthereumCall ! ]
143+ apiVersions (subgraphId : String ! ): [ApiVersion ! ]!
144+ }
145+
146+ type SubgraphError {
147+ message : String !
148+ block : Block
149+ handler : String
150+ deterministic : Boolean !
151+ }
152+
153+ type SubgraphFeatures {
154+ apiVersion : String
155+ specVersion : String !
156+ features : [Feature ! ]!
157+ dataSources : [String ! ]!
158+ handlers : [String ! ]!
159+ network : String
160+ }
161+
162+ type SubgraphIndexingStatus {
163+ subgraph : String !
164+ synced : Boolean !
165+ health : Health !
166+ """If the subgraph has failed, this is the error caused it"""
167+ fatalError : SubgraphError
168+ """Sorted from first to last, limited to first 1000"""
169+ nonFatalErrors : [SubgraphError ! ]!
170+ chains : [ChainIndexingStatus ! ]!
171+ entityCount : BigInt !
172+ """null if deployment is not assigned to an indexing node"""
173+ node : String
174+ """null if deployment is not assigned to an indexing node"""
175+ paused : Boolean
176+ historyBlocks : Int !
177+ }
178+
179+ type Version {
180+ version : String !
181+ commit : String !
182+ }
0 commit comments