This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ethjs-schema.json
211 lines (211 loc) · 6.06 KB
/
ethjs-schema.json
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
155
156
157
158
159
160
161
162
163
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
{
"methods": {
"web3_clientVersion": [[], "S"],
"web3_sha3": [["S"], "D", 1],
"net_version": [[], "S"],
"net_peerCount": [[], "Q"],
"net_listening": [[], "B"],
"personal_sign": [["D20", "D", "S"], "D", 2],
"personal_ecRecover": [["D", "D"], "D20", 2],
"pirl_protocolVersion": [[], "S"],
"pirl_syncing": [[], "Boolean|PirlSyncing"],
"pirl_coinbase": [[], "D20"],
"pirl_mining": [[], "B"],
"pirl_hashrate": [[], "Q"],
"pirl_gasPrice": [[], "Q"],
"pirl_accounts": [[], ["D20"]],
"pirl_blockNumber": [[], "Q"],
"pirl_getBalance": [["D20", "Q|T"], "Q", 1, true],
"pirl_getStorageAt": [["D20", "Q", "Q|T"], "D", 2, true],
"pirl_getTransactionCount": [["D20", "Q|T"], "Q", 1, true],
"pirl_getBlockTransactionCountByHash": [["D32"], "Q", 1],
"pirl_getBlockTransactionCountByNumber": [["Q|T"], "Q", 1],
"pirl_getUncleCountByBlockHash": [["D32"], "Q", 1],
"pirl_getUncleCountByBlockNumber": [["Q"], "Q", 1],
"pirl_getCode": [["D20", "Q|T"], "D", 1, true],
"pirl_sign": [["D20", "D32"], "D", 2],
"pirl_sendTransaction": [["SendTransaction"], "D", 1],
"pirl_sendRawTransaction": [["D"], "D32", 1],
"pirl_call": [["CallTransaction", "Q|T"], "D", 1, true],
"pirl_estimateGas": [["EstimateTransaction", "Q|T"], "Q", 1],
"pirl_getBlockByHash": [["D32", "B"], "Block", 2],
"pirl_getBlockByNumber": [["Q|T", "B"], "Block", 2],
"pirl_getTransactionByHash": [["D32"], "Transaction", 1],
"pirl_getTransactionByBlockHashAndIndex": [["D32", "Q"], "Transaction", 2],
"pirl_getTransactionByBlockNumberAndIndex": [["Q|T", "Q"], "Transaction", 2],
"pirl_getTransactionReceipt": [["D32"], "Receipt", 1],
"pirl_getUncleByBlockHashAndIndex": [["D32", "Q"], "Block", 1],
"pirl_getUncleByBlockNumberAndIndex": [["Q|T", "Q"], "Block", 2],
"pirl_getCompilers": [[], ["S"]],
"pirl_compileLLL": [["S"], "D", 1],
"pirl_compileSolidity": [["S"], "D", 1],
"pirl_compileSerpent": [["S"], "D", 1],
"pirl_newFilter": [["Filter"], "Q", 1],
"pirl_newBlockFilter": [[], "Q"],
"pirl_newPendingTransactionFilter": [[], "Q"],
"pirl_uninstallFilter": [["Q"], "B", 1],
"pirl_getFilterChanges": [["Q"], ["FilterChange"], 1],
"pirl_getFilterLogs": [["Q"], ["FilterChange"], 1],
"pirl_getLogs": [["Filter"], ["FilterChange"], 1],
"pirl_getWork": [[], ["D"]],
"pirl_submitWork": [["D", "D32", "D32"], "B", 3],
"pirl_submitHashrate": [["D", "D"], "B", 2],
"db_putString": [["S", "S", "S"], "B", 2],
"db_getString": [["S", "S"], "S", 2],
"db_putHex": [["S", "S", "D"], "B", 2],
"db_getHex": [["S", "S"], "D", 2],
"shh_post": [["SHHPost"], "B", 1],
"shh_version": [[], "S"],
"shh_newIdentity": [[], "D"],
"shh_hasIdentity": [["D"], "B"],
"shh_newGroup": [[], "D"],
"shh_addToGroup": [["D"], "B", 1],
"shh_newFilter": [["SHHFilter"], "Q", 1],
"shh_uninstallFilter": [["Q"], "B", 1],
"shh_getFilterChanges": [["Q"], ["SHHFilterChange"], 1],
"shh_getMessages": [["Q"], ["SHHFilterChange"], 1]
},
"tags": ["latest", "earliest", "pending"],
"objects": {
"PirlSyncing": {
"__required": [],
"startingBlock": "Q",
"currentBlock": "Q",
"highestBlock": "Q"
},
"SendTransaction": {
"__required": ["from", "data"],
"from": "D20",
"to": "D20",
"gas": "Q",
"gasPrice": "Q",
"value": "Q",
"data": "D",
"nonce": "Q"
},
"EstimateTransaction": {
"__required": [],
"from": "D20",
"to": "D20",
"gas": "Q",
"gasPrice": "Q",
"value": "Q",
"data": "D",
"nonce": "Q"
},
"CallTransaction": {
"__required": ["to"],
"from": "D20",
"to": "D20",
"gas": "Q",
"gasPrice": "Q",
"value": "Q",
"data": "D",
"nonce": "Q"
},
"Block": {
"__required": [],
"number": "Q",
"hash": "D32",
"parentHash": "D32",
"nonce": "D",
"sha3Uncles": "D",
"logsBloom": "D",
"transactionsRoot": "D",
"stateRoot": "D",
"receiptsRoot": "D",
"miner": "D",
"difficulty": "Q",
"totalDifficulty": "Q",
"extraData": "D",
"size": "Q",
"gasLimit": "Q",
"gasUsed": "Q",
"timestamp": "Q",
"transactions": ["DATA|Transaction"],
"uncles": ["D"]
},
"Transaction": {
"__required": [],
"hash": "D32",
"nonce": "Q",
"blockHash": "D32",
"blockNumber": "Q",
"transactionIndex": "Q",
"from": "D20",
"to": "D20",
"value": "Q",
"gasPrice": "Q",
"gas": "Q",
"input": "D"
},
"Receipt": {
"__required": [],
"transactionHash": "D32",
"transactionIndex": "Q",
"blockHash": "D32",
"blockNumber": "Q",
"cumulativeGasUsed": "Q",
"gasUsed": "Q",
"contractAddress": "D20",
"logs": ["FilterChange"]
},
"Filter": {
"__required": [],
"fromBlock": "Q|T",
"toBlock": "Q|T",
"address": "Array|DATA",
"topics": ["D"]
},
"FilterChange": {
"__required": [],
"removed": "B",
"logIndex": "Q",
"transactionIndex": "Q",
"transactionHash": "D32",
"blockHash": "D32",
"blockNumber": "Q",
"address": "D20",
"data": "Array|DATA",
"topics": ["D"]
},
"SHHPost": {
"__required": ["topics", "payload", "priority", "ttl"],
"from": "D",
"to": "D",
"topics": ["D"],
"payload": "D",
"priority": "Q",
"ttl": "Q"
},
"SHHFilter": {
"__required": ["topics"],
"to": "D",
"topics": ["D"]
},
"SHHFilterChange": {
"__required": [],
"hash": "D",
"from": "D",
"to": "D",
"expiry": "Q",
"ttl": "Q",
"sent": "Q",
"topics": ["D"],
"payload": "D",
"workProved": "Q"
},
"SHHMessage": {
"__required": [],
"hash": "D",
"from": "D",
"to": "D",
"expiry": "Q",
"ttl": "Q",
"sent": "Q",
"topics": ["D"],
"payload": "D",
"workProved": "Q"
}
}
}