Newer
Older
schema {
query: query_root
subscription: subscription_root
}
"""whether this query should be cached (Hasura Cloud only)"""
directive @cached(
"""measured in seconds"""
ttl: Int! = 60
"""refresh the cache entry"""
refresh: Boolean! = false
) on QUERY
"""Table of accounts."""
type account {
"""An object relationship"""
block: block!
created_at: timestamptz!
"""Block number where account was created."""
created_on: Int!
"""
A computed field, executes function "has_identity"
"""
has_identity: Boolean
"""An object relationship"""
identity: identity
killed_at: timestamptz
"""Block number where account was killed."""
killed_on: Int
"""Pubkey of the account."""
pubkey: String!
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
"""An array relationship"""
transactions_issued(
"""distinct select on columns"""
distinct_on: [transaction_select_column!]
"""limit the number of rows returned"""
limit: Int
"""skip the first n rows. Use only with order_by"""
offset: Int
"""sort the rows by one or more columns"""
order_by: [transaction_order_by!]
"""filter the rows returned"""
where: transaction_bool_exp
): [transaction!]!
"""An aggregate relationship"""
transactions_issued_aggregate(
"""distinct select on columns"""
distinct_on: [transaction_select_column!]
"""limit the number of rows returned"""
limit: Int
"""skip the first n rows. Use only with order_by"""
offset: Int
"""sort the rows by one or more columns"""
order_by: [transaction_order_by!]
"""filter the rows returned"""
where: transaction_bool_exp
): transaction_aggregate!
"""An array relationship"""
transactions_received(
"""distinct select on columns"""
distinct_on: [transaction_select_column!]
"""limit the number of rows returned"""
limit: Int
"""skip the first n rows. Use only with order_by"""
offset: Int
"""sort the rows by one or more columns"""
order_by: [transaction_order_by!]
"""filter the rows returned"""
where: transaction_bool_exp
): [transaction!]!
"""An aggregate relationship"""
transactions_received_aggregate(
"""distinct select on columns"""
distinct_on: [transaction_select_column!]
"""limit the number of rows returned"""
limit: Int
"""skip the first n rows. Use only with order_by"""
offset: Int
"""sort the rows by one or more columns"""
order_by: [transaction_order_by!]
"""filter the rows returned"""
where: transaction_bool_exp
): transaction_aggregate!
}
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
"""
aggregated selection of "account"
"""
type account_aggregate {
aggregate: account_aggregate_fields
nodes: [account!]!
}
"""
aggregate fields of "account"
"""
type account_aggregate_fields {
avg: account_avg_fields
count(columns: [account_select_column!], distinct: Boolean): Int!
max: account_max_fields
min: account_min_fields
stddev: account_stddev_fields
stddev_pop: account_stddev_pop_fields
stddev_samp: account_stddev_samp_fields
sum: account_sum_fields
var_pop: account_var_pop_fields
var_samp: account_var_samp_fields
variance: account_variance_fields
}
"""aggregate avg on columns"""
type account_avg_fields {
"""Block number where account was created."""
created_on: Float
"""Block number where account was killed."""
killed_on: Float
}
"""
Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'.
"""
input account_bool_exp {
_and: [account_bool_exp!]
_not: account_bool_exp
_or: [account_bool_exp!]
block: block_bool_exp
created_at: timestamptz_comparison_exp
created_on: Int_comparison_exp
has_identity: Boolean_comparison_exp
identity: identity_bool_exp
killed_at: timestamptz_comparison_exp
killed_on: Int_comparison_exp
pubkey: String_comparison_exp
transactions_issued_aggregate: transaction_aggregate_bool_exp
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
transactions_received_aggregate: transaction_aggregate_bool_exp
}
"""aggregate max on columns"""
type account_max_fields {
created_at: timestamptz
"""Block number where account was created."""
created_on: Int
killed_at: timestamptz
"""Block number where account was killed."""
killed_on: Int
"""Pubkey of the account."""
pubkey: String
}
"""aggregate min on columns"""
type account_min_fields {
created_at: timestamptz
"""Block number where account was created."""
created_on: Int
killed_at: timestamptz
"""Block number where account was killed."""
killed_on: Int
"""Pubkey of the account."""
pubkey: String
}
"""Ordering options when selecting data from "account"."""
input account_order_by {
block: block_order_by
created_at: order_by
created_on: order_by
has_identity: order_by
identity: identity_order_by
killed_at: order_by
killed_on: order_by
transactions_issued_aggregate: transaction_aggregate_order_by
transactions_received_aggregate: transaction_aggregate_order_by
}
"""
select columns of table "account"
"""
enum account_select_column {
"""column name"""
created_at
"""column name"""
created_on
"""column name"""
killed_at
"""column name"""
killed_on
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
"""column name"""
pubkey
}
"""aggregate stddev on columns"""
type account_stddev_fields {
"""Block number where account was created."""
created_on: Float
"""Block number where account was killed."""
killed_on: Float
}
"""aggregate stddev_pop on columns"""
type account_stddev_pop_fields {
"""Block number where account was created."""
created_on: Float
"""Block number where account was killed."""
killed_on: Float
}
"""aggregate stddev_samp on columns"""
type account_stddev_samp_fields {
"""Block number where account was created."""
created_on: Float
"""Block number where account was killed."""
killed_on: Float
}
"""
Streaming cursor of the table "account"
"""
input account_stream_cursor_input {
"""Stream column input with initial value"""
initial_value: account_stream_cursor_value_input!
"""cursor ordering"""
ordering: cursor_ordering
}
"""Initial value of the column from where the streaming should start"""
input account_stream_cursor_value_input {
created_at: timestamptz
"""Block number where account was created."""
created_on: Int
killed_at: timestamptz
"""Block number where account was killed."""
killed_on: Int
pubkey: String
}
"""aggregate sum on columns"""
type account_sum_fields {
"""Block number where account was created."""
created_on: Int
"""Block number where account was killed."""
killed_on: Int
}
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
"""aggregate var_pop on columns"""
type account_var_pop_fields {
"""Block number where account was created."""
created_on: Float
"""Block number where account was killed."""
killed_on: Float
}
"""aggregate var_samp on columns"""
type account_var_samp_fields {
"""Block number where account was created."""
created_on: Float
"""Block number where account was killed."""
killed_on: Float
}
"""aggregate variance on columns"""
type account_variance_fields {
"""Block number where account was created."""
created_on: Float
"""Block number where account was killed."""
killed_on: Float
}
"""Table of blocks."""
type block {
created_at: timestamp!
"""
Data contains `extrinsics` and `events` of the block. Exemple for querying
specific data: `data(path: "extrinsics[0].isSigned")`.
"""
data(
"""JSON select path"""
path: String
): jsonb
hash: String!
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
"""Number of the block in substrate."""
number: Int!
}
"""
aggregated selection of "block"
"""
type block_aggregate {
aggregate: block_aggregate_fields
nodes: [block!]!
}
"""
aggregate fields of "block"
"""
type block_aggregate_fields {
avg: block_avg_fields
count(columns: [block_select_column!], distinct: Boolean): Int!
max: block_max_fields
min: block_min_fields
stddev: block_stddev_fields
stddev_pop: block_stddev_pop_fields
stddev_samp: block_stddev_samp_fields
sum: block_sum_fields
var_pop: block_var_pop_fields
var_samp: block_var_samp_fields
variance: block_variance_fields
}
"""aggregate avg on columns"""
type block_avg_fields {
"""Number of the block in substrate."""
number: Float
}
"""
Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'.
"""
input block_bool_exp {
_and: [block_bool_exp!]
_not: block_bool_exp
_or: [block_bool_exp!]
created_at: timestamp_comparison_exp
data: jsonb_comparison_exp
hash: String_comparison_exp
number: Int_comparison_exp
}
"""aggregate max on columns"""
type block_max_fields {
created_at: timestamp
hash: String
"""Number of the block in substrate."""
number: Int
}
"""aggregate min on columns"""
type block_min_fields {
created_at: timestamp
hash: String
"""Number of the block in substrate."""
number: Int
}
"""Ordering options when selecting data from "block"."""
input block_order_by {
created_at: order_by
data: order_by
hash: order_by
}
"""
select columns of table "block"
"""
enum block_select_column {
"""column name"""
created_at
"""column name"""
data
"""column name"""
hash
"""column name"""
number
}
"""aggregate stddev on columns"""
type block_stddev_fields {
"""Number of the block in substrate."""
number: Float
}
"""aggregate stddev_pop on columns"""
type block_stddev_pop_fields {
"""Number of the block in substrate."""
number: Float
}
"""aggregate stddev_samp on columns"""
type block_stddev_samp_fields {
"""Number of the block in substrate."""
number: Float
}
"""
Streaming cursor of the table "block"
"""
input block_stream_cursor_input {
"""Stream column input with initial value"""
initial_value: block_stream_cursor_value_input!
"""cursor ordering"""
ordering: cursor_ordering
}
"""Initial value of the column from where the streaming should start"""
input block_stream_cursor_value_input {
created_at: timestamp
"""
Data contains `extrinsics` and `events` of the block. Exemple for querying
specific data: `data(path: "extrinsics[0].isSigned")`.
"""
data: jsonb
hash: String
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
"""Number of the block in substrate."""
number: Int
}
"""aggregate sum on columns"""
type block_sum_fields {
"""Number of the block in substrate."""
number: Int
}
"""aggregate var_pop on columns"""
type block_var_pop_fields {
"""Number of the block in substrate."""
number: Float
}
"""aggregate var_samp on columns"""
type block_var_samp_fields {
"""Number of the block in substrate."""
number: Float
}
"""aggregate variance on columns"""
type block_variance_fields {
"""Number of the block in substrate."""
number: Float
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
}
"""
Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'.
"""
input Boolean_comparison_exp {
_eq: Boolean
_gt: Boolean
_gte: Boolean
_in: [Boolean!]
_is_null: Boolean
_lt: Boolean
_lte: Boolean
_neq: Boolean
_nin: [Boolean!]
}
"""Table of certifications."""
type certification {
created_at: timestamptz!
"""Block number where certification was created."""
created_on: Int!
"""An object relationship"""
created_on_block: block!
"""An object relationship"""
issuer: identity!
"""Index of issuer"""
issuer_index: Int!
"""An object relationship"""
receiver: identity!
"""Index of receiver"""
receiver_index: Int!
}
"""
aggregated selection of "certification"
"""
type certification_aggregate {
aggregate: certification_aggregate_fields
nodes: [certification!]!
}
input certification_aggregate_bool_exp {
count: certification_aggregate_bool_exp_count
}
input certification_aggregate_bool_exp_count {
arguments: [certification_select_column!]
distinct: Boolean
filter: certification_bool_exp
predicate: Int_comparison_exp!
}
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
"""
aggregate fields of "certification"
"""
type certification_aggregate_fields {
avg: certification_avg_fields
count(columns: [certification_select_column!], distinct: Boolean): Int!
max: certification_max_fields
min: certification_min_fields
stddev: certification_stddev_fields
stddev_pop: certification_stddev_pop_fields
stddev_samp: certification_stddev_samp_fields
sum: certification_sum_fields
var_pop: certification_var_pop_fields
var_samp: certification_var_samp_fields
variance: certification_variance_fields
}
"""
order by aggregate values of table "certification"
"""
input certification_aggregate_order_by {
avg: certification_avg_order_by
count: order_by
max: certification_max_order_by
min: certification_min_order_by
stddev: certification_stddev_order_by
stddev_pop: certification_stddev_pop_order_by
stddev_samp: certification_stddev_samp_order_by
sum: certification_sum_order_by
var_pop: certification_var_pop_order_by
var_samp: certification_var_samp_order_by
variance: certification_variance_order_by
}
"""aggregate avg on columns"""
type certification_avg_fields {
"""Block number where certification was created."""
created_on: Float
"""Index of issuer"""
issuer_index: Float
"""Index of receiver"""
receiver_index: Float
}
"""
order by avg() on columns of table "certification"
"""
input certification_avg_order_by {
"""Block number where certification was created."""
created_on: order_by
"""Index of issuer"""
issuer_index: order_by
"""Index of receiver"""
receiver_index: order_by
}
"""
Boolean expression to filter rows from the table "certification". All fields are combined with a logical 'AND'.
"""
input certification_bool_exp {
_and: [certification_bool_exp!]
_not: certification_bool_exp
_or: [certification_bool_exp!]
created_at: timestamptz_comparison_exp
created_on: Int_comparison_exp
created_on_block: block_bool_exp
issuer: identity_bool_exp
issuer_index: Int_comparison_exp
receiver_index: Int_comparison_exp
}
"""aggregate max on columns"""
type certification_max_fields {
created_at: timestamptz
"""Block number where certification was created."""
created_on: Int
"""Index of issuer"""
issuer_index: Int
"""Index of receiver"""
receiver_index: Int
}
"""
order by max() on columns of table "certification"
"""
input certification_max_order_by {
created_at: order_by
"""Block number where certification was created."""
created_on: order_by
"""Index of issuer"""
issuer_index: order_by
"""Index of receiver"""
receiver_index: order_by
}
"""aggregate min on columns"""
type certification_min_fields {
created_at: timestamptz
"""Block number where certification was created."""
created_on: Int
"""Index of issuer"""
issuer_index: Int
"""Index of receiver"""
receiver_index: Int
}
"""
order by min() on columns of table "certification"
"""
input certification_min_order_by {
created_at: order_by
"""Block number where certification was created."""
created_on: order_by
"""Index of issuer"""
issuer_index: order_by
"""Index of receiver"""
receiver_index: order_by
}
"""Ordering options when selecting data from "certification"."""
input certification_order_by {
created_at: order_by
created_on: order_by
created_on_block: block_order_by
issuer: identity_order_by
issuer_index: order_by
receiver_index: order_by
}
"""
select columns of table "certification"
"""
enum certification_select_column {
"""column name"""
created_at
"""column name"""
created_on
"""column name"""
}
"""aggregate stddev on columns"""
type certification_stddev_fields {
"""Block number where certification was created."""
created_on: Float
"""Index of issuer"""
issuer_index: Float
"""Index of receiver"""
receiver_index: Float
}
"""
order by stddev() on columns of table "certification"
"""
input certification_stddev_order_by {
"""Block number where certification was created."""
created_on: order_by
"""Index of issuer"""
issuer_index: order_by
"""Index of receiver"""
receiver_index: order_by
}
"""aggregate stddev_pop on columns"""
type certification_stddev_pop_fields {
"""Block number where certification was created."""
created_on: Float
"""Index of issuer"""
issuer_index: Float
"""Index of receiver"""
receiver_index: Float
}
"""
order by stddev_pop() on columns of table "certification"
"""
input certification_stddev_pop_order_by {
"""Block number where certification was created."""
created_on: order_by
"""Index of issuer"""
issuer_index: order_by
"""Index of receiver"""
receiver_index: order_by
}
"""aggregate stddev_samp on columns"""
type certification_stddev_samp_fields {
"""Block number where certification was created."""
created_on: Float
"""Index of issuer"""
issuer_index: Float
"""Index of receiver"""
receiver_index: Float
}
"""
order by stddev_samp() on columns of table "certification"
"""
input certification_stddev_samp_order_by {
"""Block number where certification was created."""
created_on: order_by
"""Index of issuer"""
issuer_index: order_by
"""Index of receiver"""
receiver_index: order_by
}
"""
Streaming cursor of the table "certification"
"""
input certification_stream_cursor_input {
"""Stream column input with initial value"""
initial_value: certification_stream_cursor_value_input!
"""cursor ordering"""
ordering: cursor_ordering
}
"""Initial value of the column from where the streaming should start"""
input certification_stream_cursor_value_input {
created_at: timestamptz
"""Block number where certification was created."""
created_on: Int
"""Index of issuer"""
issuer_index: Int
"""Index of receiver"""
receiver_index: Int
}
"""aggregate sum on columns"""
type certification_sum_fields {
"""Block number where certification was created."""
created_on: Int
"""Index of issuer"""
issuer_index: Int
"""Index of receiver"""
receiver_index: Int
}
"""
order by sum() on columns of table "certification"
"""
input certification_sum_order_by {
"""Block number where certification was created."""
created_on: order_by
"""Index of issuer"""
issuer_index: order_by
"""Index of receiver"""
receiver_index: order_by
}
"""aggregate var_pop on columns"""
type certification_var_pop_fields {
"""Block number where certification was created."""
created_on: Float
"""Index of issuer"""
issuer_index: Float
"""Index of receiver"""
receiver_index: Float
}
"""
order by var_pop() on columns of table "certification"
"""
input certification_var_pop_order_by {
"""Block number where certification was created."""
created_on: order_by
"""Index of issuer"""
issuer_index: order_by
"""Index of receiver"""
receiver_index: order_by
}
"""aggregate var_samp on columns"""
type certification_var_samp_fields {
"""Block number where certification was created."""
created_on: Float
"""Index of issuer"""
issuer_index: Float
"""Index of receiver"""
receiver_index: Float
}
"""
order by var_samp() on columns of table "certification"
"""
input certification_var_samp_order_by {
"""Block number where certification was created."""
created_on: order_by
"""Index of issuer"""
issuer_index: order_by
"""Index of receiver"""
receiver_index: order_by
}
"""aggregate variance on columns"""
type certification_variance_fields {
"""Block number where certification was created."""
created_on: Float
"""Index of issuer"""
issuer_index: Float
"""Index of receiver"""
receiver_index: Float
}
"""
order by variance() on columns of table "certification"
"""
input certification_variance_order_by {
"""Block number where certification was created."""
created_on: order_by
"""Index of issuer"""
issuer_index: order_by
"""Index of receiver"""
receiver_index: order_by
}
"""ordering argument of a cursor"""
enum cursor_ordering {
"""ascending ordering of the cursor"""
ASC
"""descending ordering of the cursor"""
DESC
}
"""
Boolean expression to compare columns of type "Float". All fields are combined with logical 'AND'.
"""
input Float_comparison_exp {
_eq: Float
_gt: Float
_gte: Float
_in: [Float!]
_is_null: Boolean
_lt: Float
_lte: Float
_neq: Float
_nin: [Float!]
}
"""Table of identities."""
type identity {
"""An object relationship"""
account: account
"""An array relationship"""
"""distinct select on columns"""
distinct_on: [certification_select_column!]
"""limit the number of rows returned"""
limit: Int
"""skip the first n rows. Use only with order_by"""
offset: Int
"""sort the rows by one or more columns"""
order_by: [certification_order_by!]
"""filter the rows returned"""
where: certification_bool_exp
): [certification!]!
"""An aggregate relationship"""
cert_issued_aggregate(
"""distinct select on columns"""
distinct_on: [certification_select_column!]
"""limit the number of rows returned"""
limit: Int
"""skip the first n rows. Use only with order_by"""
offset: Int
"""sort the rows by one or more columns"""
order_by: [certification_order_by!]
"""filter the rows returned"""
where: certification_bool_exp
): certification_aggregate!
"""An array relationship"""
"""distinct select on columns"""
distinct_on: [certification_select_column!]
"""limit the number of rows returned"""
limit: Int
"""skip the first n rows. Use only with order_by"""
offset: Int
"""sort the rows by one or more columns"""
order_by: [certification_order_by!]