-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
101 lines (86 loc) · 1.75 KB
/
schema.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
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
}
type Block {
bits: BigInt
block_index: Int
fee: BigInt
hash: Hash
height: Int
main_chain: Boolean
mrkl_root: Hash
n_tx: Int
nonce: BigInt
prev_block: Hash
size: BigInt
time: Int
ver: Int
weight: BigInt
}
type BlockDescription {
hash: Hash
height: Int
time: Int
}
type BlocksConnection {
blocks: [BlockDescription]!
total: Int!
}
type Query {
block(hash: Hash!): Block
blocks(date: Day!, limit: Int, offset: Int): BlocksConnection!
transactions(hash: Hash!, limit: Int, offset: Int): TransactionsConnection!
}
type Transaction {
balance: Int
block_height: Int
block_index: Int
double_spend: Boolean
fee: BigInt
hash: Hash
inputs: [TransactionInput]
lock_time: Int
out: [TransactionOutput]
relayed_by: String
result: Int
size: Int
time: Int
tx_index: BigInt
ver: Int
vin_sz: Int
vout_sz: Int
weight: Int
}
type TransactionInput {
index: Int
prev_out: TransactionOutput
script: String
sequence: BigInt
witness: String
}
type TransactionOutput {
addr: String
n: Int
script: String
spent: Boolean
tx_index: Int
type: Int
value: BigInt
}
type TransactionsConnection {
total: Int!
transactions: [Transaction]!
}
enum CacheControlScope {
PRIVATE
PUBLIC
}
"Day scalar type in YYYY-MM-DD format"
scalar Day
"Hash scalar type"
scalar Hash
"The `BigInt` scalar type represents non-fractional signed whole numeric values.BigInt can represent values between -(2^63) + 1 and 2^63 - 1."
scalar BigInt
"The `Upload` scalar type represents a file upload."
scalar Upload