-
Notifications
You must be signed in to change notification settings - Fork 32
/
queries.graphql
154 lines (152 loc) · 3.67 KB
/
queries.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
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
146
147
148
149
150
151
152
153
154
type Query {
# returns all logs that match the given filter
logs(
contract_address: String
chain_id: Int!
block_number: Int
tx_hash: String
tx_index: Int
block_hash: String
index: Int
confirmed: Boolean
page: Int!
): [Log]
# returns all logs that match the given filter and range
logsRange(
contract_address: String
chain_id: Int!
block_number: Int
tx_hash: String
tx_index: Int
block_hash: String
index: Int
confirmed: Boolean
start_block: Int!
end_block: Int!
page: Int!
asc: Boolean = False
): [Log]
# returns all receipts that match the given filter
receipts(
chain_id: Int!
tx_hash: String
contract_address: String
block_hash: String
block_number: Int
tx_index: Int
confirmed: Boolean
page: Int!
): [Receipt]
# returns all receipts that match the given filter and range
receiptsRange(
chain_id: Int!
tx_hash: String
contract_address: String
block_hash: String
block_number: Int
tx_index: Int
confirmed: Boolean
start_block: Int!
end_block: Int!
page: Int!
): [Receipt]
# returns all transactions that match the given filter
transactions(
tx_hash: String
chain_id: Int!
block_number: Int
block_hash: String
confirmed: Boolean
page: Int!
): [Transaction]
# returns all transactions that match the given filter and range
transactionsRange(
tx_hash: String
chain_id: Int!
block_number: Int
block_hash: String
confirmed: Boolean
start_block: Int!
end_block: Int!
page: Int!
): [Transaction]
# returns the timestamp of a given block for a chain
blockTime(
chain_id: Int!
block_number: Int!
): Int
# returns the last block number that has a block time for a chain
lastStoredBlockNumber(
chain_id: Int!
): Int
# returns the first block number that has a block time for a chain
firstStoredBlockNumber(
chain_id: Int!
): Int
# returns the last confirmed block number for a chain
lastConfirmedBlockNumber(
chain_id: Int!
): Int
# returns the sender of a transaction
txSender(
tx_hash: String!
chain_id: Int!
): String
# returns the last indexed block number for a chain
lastIndexed(
contract_address: String!
chain_id: Int!
): Int
# returns the amount of logs stored per contract address
logCount(
contract_address: String!
chain_id: Int!
): Int
# returns the amount of receipts stored per contract address
receiptCount(
chain_id: Int!
): Int
# returns the amount of block times stored per chain
blockTimeCount(
chain_id: Int!
): Int
# returns all logs that match the given filter and range (including from the unconfirmed logs table)
logsAtHeadRange(
contract_address: String
chain_id: Int!
block_number: Int
tx_hash: String
tx_index: Int
block_hash: String
index: Int
confirmed: Boolean
start_block: Int!
end_block: Int!
page: Int!
): [Log]
# returns all receipts that match the given filter and range (including from the unconfirmed receipts table)
receiptsAtHeadRange(
chain_id: Int!
tx_hash: String
contract_address: String
block_hash: String
block_number: Int
tx_index: Int
confirmed: Boolean
start_block: Int!
end_block: Int!
page: Int!
): [Receipt]
# returns all transactions that match the given filter and range (including from the unconfirmed transactions table)
transactionsAtHeadRange(
tx_hash: String
chain_id: Int!
block_number: Int
block_hash: String
confirmed: Boolean
start_block: Int!
end_block: Int!
last_indexed: Int!
page: Int!
): [Transaction]
}