@dedot/chaintypes 0.0.1-alpha.24 → 0.0.1-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aleph/consts.d.ts +590 -528
- package/aleph/errors.d.ts +981 -818
- package/aleph/events.d.ts +924 -937
- package/aleph/index.d.ts +11 -8
- package/aleph/query.d.ts +1477 -1268
- package/aleph/rpc.d.ts +725 -573
- package/aleph/runtime.d.ts +541 -406
- package/aleph/tx.d.ts +2664 -2202
- package/aleph/types.d.ts +3474 -5388
- package/astar/consts.d.ts +753 -674
- package/astar/errors.d.ts +1576 -1313
- package/astar/events.d.ts +1709 -1628
- package/astar/index.d.ts +11 -8
- package/astar/query.d.ts +1756 -1471
- package/astar/rpc.d.ts +972 -773
- package/astar/runtime.d.ts +310 -258
- package/astar/tx.d.ts +5474 -4806
- package/astar/types.d.ts +8848 -12108
- package/index.ts +10 -0
- package/kusama/consts.d.ts +1573 -1422
- package/kusama/errors.d.ts +2995 -2490
- package/kusama/events.d.ts +2996 -2723
- package/kusama/index.d.ts +11 -8
- package/kusama/query.d.ts +3828 -3248
- package/kusama/rpc.d.ts +902 -724
- package/kusama/runtime.d.ts +1130 -840
- package/kusama/tx.d.ts +7073 -6010
- package/kusama/types.d.ts +10151 -15344
- package/kusamaAssetHub/consts.d.ts +714 -627
- package/kusamaAssetHub/errors.d.ts +1405 -1160
- package/kusamaAssetHub/events.d.ts +2149 -2060
- package/kusamaAssetHub/index.d.ts +11 -8
- package/kusamaAssetHub/query.d.ts +1551 -1298
- package/kusamaAssetHub/rpc.d.ts +744 -588
- package/kusamaAssetHub/runtime.d.ts +510 -398
- package/kusamaAssetHub/tx.d.ts +5050 -4212
- package/kusamaAssetHub/types.d.ts +5976 -10009
- package/moonbeam/consts.d.ts +1075 -956
- package/moonbeam/errors.d.ts +2131 -1793
- package/moonbeam/events.d.ts +2932 -2681
- package/moonbeam/index.d.ts +11 -8
- package/moonbeam/query.d.ts +2391 -2024
- package/moonbeam/rpc.d.ts +1013 -807
- package/moonbeam/runtime.d.ts +665 -502
- package/moonbeam/tx.d.ts +6152 -5201
- package/moonbeam/types.d.ts +7731 -12035
- package/package.json +9 -8
- package/packageInfo.js +1 -1
- package/packageInfo.ts +3 -0
- package/polkadot/consts.d.ts +1272 -1155
- package/polkadot/errors.d.ts +2420 -2016
- package/polkadot/events.d.ts +2314 -2092
- package/polkadot/index.d.ts +11 -8
- package/polkadot/query.d.ts +3319 -2808
- package/polkadot/rpc.d.ts +902 -724
- package/polkadot/runtime.d.ts +1130 -840
- package/polkadot/tx.d.ts +5909 -5005
- package/polkadot/types.d.ts +8742 -13290
- package/polkadotAssetHub/consts.d.ts +586 -519
- package/polkadotAssetHub/errors.d.ts +1115 -921
- package/polkadotAssetHub/events.d.ts +1850 -1782
- package/polkadotAssetHub/index.d.ts +11 -8
- package/polkadotAssetHub/query.d.ts +1457 -1219
- package/polkadotAssetHub/rpc.d.ts +744 -588
- package/polkadotAssetHub/runtime.d.ts +447 -355
- package/polkadotAssetHub/tx.d.ts +4184 -3487
- package/polkadotAssetHub/types.d.ts +5183 -8808
- package/rococoAssetHub/consts.d.ts +745 -653
- package/rococoAssetHub/errors.d.ts +1490 -1227
- package/rococoAssetHub/events.d.ts +2127 -2047
- package/rococoAssetHub/index.d.ts +11 -8
- package/rococoAssetHub/query.d.ts +1513 -1266
- package/rococoAssetHub/rpc.d.ts +744 -588
- package/rococoAssetHub/runtime.d.ts +538 -424
- package/rococoAssetHub/tx.d.ts +5164 -4302
- package/rococoAssetHub/types.d.ts +6321 -10636
- package/substrate/consts.d.ts +2218 -1966
- package/substrate/errors.d.ts +4019 -3333
- package/substrate/events.d.ts +4585 -4255
- package/substrate/index.d.ts +11 -8
- package/substrate/query.d.ts +3887 -3347
- package/substrate/rpc.d.ts +892 -716
- package/substrate/runtime.d.ts +937 -704
- package/substrate/tx.d.ts +10387 -8796
- package/substrate/types.d.ts +12809 -19761
- package/westendAssetHub/consts.d.ts +745 -653
- package/westendAssetHub/errors.d.ts +1490 -1227
- package/westendAssetHub/events.d.ts +2127 -2047
- package/westendAssetHub/index.d.ts +11 -8
- package/westendAssetHub/query.d.ts +1513 -1266
- package/westendAssetHub/rpc.d.ts +744 -588
- package/westendAssetHub/runtime.d.ts +577 -452
- package/westendAssetHub/tx.d.ts +5164 -4302
- package/westendAssetHub/types.d.ts +6321 -10633
- package/aleph/consts.js +0 -2
- package/aleph/errors.js +0 -2
- package/aleph/events.js +0 -2
- package/aleph/index.js +0 -3
- package/aleph/query.js +0 -2
- package/aleph/rpc.js +0 -2
- package/aleph/runtime.js +0 -2
- package/aleph/tx.js +0 -2
- package/aleph/types.js +0 -2
- package/astar/consts.js +0 -2
- package/astar/errors.js +0 -2
- package/astar/events.js +0 -2
- package/astar/index.js +0 -3
- package/astar/query.js +0 -2
- package/astar/rpc.js +0 -2
- package/astar/runtime.js +0 -2
- package/astar/tx.js +0 -2
- package/astar/types.js +0 -2
- package/cjs/aleph/consts.js +0 -3
- package/cjs/aleph/errors.js +0 -3
- package/cjs/aleph/events.js +0 -3
- package/cjs/aleph/index.js +0 -19
- package/cjs/aleph/query.js +0 -3
- package/cjs/aleph/rpc.js +0 -3
- package/cjs/aleph/runtime.js +0 -3
- package/cjs/aleph/tx.js +0 -3
- package/cjs/aleph/types.js +0 -3
- package/cjs/astar/consts.js +0 -3
- package/cjs/astar/errors.js +0 -3
- package/cjs/astar/events.js +0 -3
- package/cjs/astar/index.js +0 -19
- package/cjs/astar/query.js +0 -3
- package/cjs/astar/rpc.js +0 -3
- package/cjs/astar/runtime.js +0 -3
- package/cjs/astar/tx.js +0 -3
- package/cjs/astar/types.js +0 -3
- package/cjs/index.js +0 -2
- package/cjs/kusama/consts.js +0 -3
- package/cjs/kusama/errors.js +0 -3
- package/cjs/kusama/events.js +0 -3
- package/cjs/kusama/index.js +0 -19
- package/cjs/kusama/query.js +0 -3
- package/cjs/kusama/rpc.js +0 -3
- package/cjs/kusama/runtime.js +0 -3
- package/cjs/kusama/tx.js +0 -3
- package/cjs/kusama/types.js +0 -3
- package/cjs/kusamaAssetHub/consts.js +0 -3
- package/cjs/kusamaAssetHub/errors.js +0 -3
- package/cjs/kusamaAssetHub/events.js +0 -3
- package/cjs/kusamaAssetHub/index.js +0 -19
- package/cjs/kusamaAssetHub/query.js +0 -3
- package/cjs/kusamaAssetHub/rpc.js +0 -3
- package/cjs/kusamaAssetHub/runtime.js +0 -3
- package/cjs/kusamaAssetHub/tx.js +0 -3
- package/cjs/kusamaAssetHub/types.js +0 -3
- package/cjs/moonbeam/consts.js +0 -3
- package/cjs/moonbeam/errors.js +0 -3
- package/cjs/moonbeam/events.js +0 -3
- package/cjs/moonbeam/index.js +0 -19
- package/cjs/moonbeam/query.js +0 -3
- package/cjs/moonbeam/rpc.js +0 -3
- package/cjs/moonbeam/runtime.js +0 -3
- package/cjs/moonbeam/tx.js +0 -3
- package/cjs/moonbeam/types.js +0 -3
- package/cjs/package.json +0 -1
- package/cjs/packageInfo.js +0 -5
- package/cjs/polkadot/consts.js +0 -3
- package/cjs/polkadot/errors.js +0 -3
- package/cjs/polkadot/events.js +0 -3
- package/cjs/polkadot/index.js +0 -19
- package/cjs/polkadot/query.js +0 -3
- package/cjs/polkadot/rpc.js +0 -3
- package/cjs/polkadot/runtime.js +0 -3
- package/cjs/polkadot/tx.js +0 -3
- package/cjs/polkadot/types.js +0 -3
- package/cjs/polkadotAssetHub/consts.js +0 -3
- package/cjs/polkadotAssetHub/errors.js +0 -3
- package/cjs/polkadotAssetHub/events.js +0 -3
- package/cjs/polkadotAssetHub/index.js +0 -19
- package/cjs/polkadotAssetHub/query.js +0 -3
- package/cjs/polkadotAssetHub/rpc.js +0 -3
- package/cjs/polkadotAssetHub/runtime.js +0 -3
- package/cjs/polkadotAssetHub/tx.js +0 -3
- package/cjs/polkadotAssetHub/types.js +0 -3
- package/cjs/rococoAssetHub/consts.js +0 -3
- package/cjs/rococoAssetHub/errors.js +0 -3
- package/cjs/rococoAssetHub/events.js +0 -3
- package/cjs/rococoAssetHub/index.js +0 -19
- package/cjs/rococoAssetHub/query.js +0 -3
- package/cjs/rococoAssetHub/rpc.js +0 -3
- package/cjs/rococoAssetHub/runtime.js +0 -3
- package/cjs/rococoAssetHub/tx.js +0 -3
- package/cjs/rococoAssetHub/types.js +0 -3
- package/cjs/substrate/consts.js +0 -3
- package/cjs/substrate/errors.js +0 -3
- package/cjs/substrate/events.js +0 -3
- package/cjs/substrate/index.js +0 -19
- package/cjs/substrate/query.js +0 -3
- package/cjs/substrate/rpc.js +0 -3
- package/cjs/substrate/runtime.js +0 -3
- package/cjs/substrate/tx.js +0 -3
- package/cjs/substrate/types.js +0 -3
- package/cjs/westendAssetHub/consts.js +0 -3
- package/cjs/westendAssetHub/errors.js +0 -3
- package/cjs/westendAssetHub/events.js +0 -3
- package/cjs/westendAssetHub/index.js +0 -19
- package/cjs/westendAssetHub/query.js +0 -3
- package/cjs/westendAssetHub/rpc.js +0 -3
- package/cjs/westendAssetHub/runtime.js +0 -3
- package/cjs/westendAssetHub/tx.js +0 -3
- package/cjs/westendAssetHub/types.js +0 -3
- package/kusama/consts.js +0 -2
- package/kusama/errors.js +0 -2
- package/kusama/events.js +0 -2
- package/kusama/index.js +0 -3
- package/kusama/query.js +0 -2
- package/kusama/rpc.js +0 -2
- package/kusama/runtime.js +0 -2
- package/kusama/tx.js +0 -2
- package/kusama/types.js +0 -2
- package/kusamaAssetHub/consts.js +0 -2
- package/kusamaAssetHub/errors.js +0 -2
- package/kusamaAssetHub/events.js +0 -2
- package/kusamaAssetHub/index.js +0 -3
- package/kusamaAssetHub/query.js +0 -2
- package/kusamaAssetHub/rpc.js +0 -2
- package/kusamaAssetHub/runtime.js +0 -2
- package/kusamaAssetHub/tx.js +0 -2
- package/kusamaAssetHub/types.js +0 -2
- package/moonbeam/consts.js +0 -2
- package/moonbeam/errors.js +0 -2
- package/moonbeam/events.js +0 -2
- package/moonbeam/index.js +0 -3
- package/moonbeam/query.js +0 -2
- package/moonbeam/rpc.js +0 -2
- package/moonbeam/runtime.js +0 -2
- package/moonbeam/tx.js +0 -2
- package/moonbeam/types.js +0 -2
- package/polkadot/consts.js +0 -2
- package/polkadot/errors.js +0 -2
- package/polkadot/events.js +0 -2
- package/polkadot/index.js +0 -3
- package/polkadot/query.js +0 -2
- package/polkadot/rpc.js +0 -2
- package/polkadot/runtime.js +0 -2
- package/polkadot/tx.js +0 -2
- package/polkadot/types.js +0 -2
- package/polkadotAssetHub/consts.js +0 -2
- package/polkadotAssetHub/errors.js +0 -2
- package/polkadotAssetHub/events.js +0 -2
- package/polkadotAssetHub/index.js +0 -3
- package/polkadotAssetHub/query.js +0 -2
- package/polkadotAssetHub/rpc.js +0 -2
- package/polkadotAssetHub/runtime.js +0 -2
- package/polkadotAssetHub/tx.js +0 -2
- package/polkadotAssetHub/types.js +0 -2
- package/rococoAssetHub/consts.js +0 -2
- package/rococoAssetHub/errors.js +0 -2
- package/rococoAssetHub/events.js +0 -2
- package/rococoAssetHub/index.js +0 -3
- package/rococoAssetHub/query.js +0 -2
- package/rococoAssetHub/rpc.js +0 -2
- package/rococoAssetHub/runtime.js +0 -2
- package/rococoAssetHub/tx.js +0 -2
- package/rococoAssetHub/types.js +0 -2
- package/substrate/consts.js +0 -2
- package/substrate/errors.js +0 -2
- package/substrate/events.js +0 -2
- package/substrate/index.js +0 -3
- package/substrate/query.js +0 -2
- package/substrate/rpc.js +0 -2
- package/substrate/runtime.js +0 -2
- package/substrate/tx.js +0 -2
- package/substrate/types.js +0 -2
- package/westendAssetHub/consts.js +0 -2
- package/westendAssetHub/errors.js +0 -2
- package/westendAssetHub/events.js +0 -2
- package/westendAssetHub/index.js +0 -3
- package/westendAssetHub/query.js +0 -2
- package/westendAssetHub/rpc.js +0 -2
- package/westendAssetHub/runtime.js +0 -2
- package/westendAssetHub/tx.js +0 -2
- package/westendAssetHub/types.js +0 -2
package/moonbeam/rpc.d.ts
CHANGED
|
@@ -1,809 +1,1015 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// Generated by @dedot/codegen
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
GenericRpcCalls,
|
|
5
|
+
Unsub,
|
|
6
|
+
Callback,
|
|
7
|
+
GenericRpcCall,
|
|
8
|
+
ExtrinsicOrHash,
|
|
9
|
+
StorageKind,
|
|
10
|
+
RpcMethods,
|
|
11
|
+
ReadProof,
|
|
12
|
+
StorageChangeSet,
|
|
13
|
+
TraceBlockResponse,
|
|
14
|
+
ChainType,
|
|
15
|
+
Health,
|
|
16
|
+
NodeRole,
|
|
17
|
+
PeerInfo,
|
|
18
|
+
ChainProperties,
|
|
19
|
+
SyncState,
|
|
20
|
+
NetworkState,
|
|
21
|
+
} from '@dedot/types';
|
|
22
|
+
import type {
|
|
23
|
+
Bytes,
|
|
24
|
+
Hash,
|
|
25
|
+
TransactionStatus,
|
|
26
|
+
Option,
|
|
27
|
+
SignedBlock,
|
|
28
|
+
BlockHash,
|
|
29
|
+
BlockNumber,
|
|
30
|
+
Header,
|
|
31
|
+
StorageKey,
|
|
32
|
+
PrefixedStorageKey,
|
|
33
|
+
StorageData,
|
|
34
|
+
FeeDetails,
|
|
35
|
+
RuntimeDispatchInfo,
|
|
36
|
+
Metadata,
|
|
37
|
+
RuntimeVersion,
|
|
38
|
+
ApplyExtrinsicResult,
|
|
39
|
+
} from '@dedot/codecs';
|
|
40
|
+
|
|
3
41
|
export interface RpcCalls extends GenericRpcCalls {
|
|
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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
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
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
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
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
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
|
-
|
|
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
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
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
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
42
|
+
author: {
|
|
43
|
+
/**
|
|
44
|
+
* Checks if the keystore has private keys for the given public key and key type. Returns `true` if a private key could be found.
|
|
45
|
+
*
|
|
46
|
+
* @rpcname: author_hasKey
|
|
47
|
+
* @param {Bytes} publicKey
|
|
48
|
+
* @param {string} keyType
|
|
49
|
+
**/
|
|
50
|
+
hasKey: GenericRpcCall<(publicKey: Bytes, keyType: string) => Promise<boolean>>;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Checks if the keystore has private keys for the given session public keys. `session_keys` is the SCALE encoded session keys object from the runtime. Returns `true` iff all private keys could be found.
|
|
54
|
+
*
|
|
55
|
+
* @rpcname: author_hasSessionKeys
|
|
56
|
+
* @param {Bytes} sessionKeys
|
|
57
|
+
**/
|
|
58
|
+
hasSessionKeys: GenericRpcCall<(sessionKeys: Bytes) => Promise<boolean>>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Insert a key into the keystore.
|
|
62
|
+
*
|
|
63
|
+
* @rpcname: author_insertKey
|
|
64
|
+
* @param {string} keyType
|
|
65
|
+
* @param {string} suri
|
|
66
|
+
* @param {Bytes} publicKey
|
|
67
|
+
**/
|
|
68
|
+
insertKey: GenericRpcCall<(keyType: string, suri: string, publicKey: Bytes) => Promise<void>>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Returns all pending extrinsics, potentially grouped by sender.
|
|
72
|
+
*
|
|
73
|
+
* @rpcname: author_pendingExtrinsics
|
|
74
|
+
**/
|
|
75
|
+
pendingExtrinsics: GenericRpcCall<() => Promise<Array<Bytes>>>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Remove given extrinsic from the pool and temporarily ban it to prevent reimporting.
|
|
79
|
+
*
|
|
80
|
+
* @rpcname: author_removeExtrinsic
|
|
81
|
+
* @param {Array<ExtrinsicOrHash>} bytesOrHash
|
|
82
|
+
**/
|
|
83
|
+
removeExtrinsic: GenericRpcCall<(bytesOrHash: Array<ExtrinsicOrHash>) => Promise<Array<Hash>>>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Generate new session keys and returns the corresponding public keys.
|
|
87
|
+
*
|
|
88
|
+
* @rpcname: author_rotateKeys
|
|
89
|
+
**/
|
|
90
|
+
rotateKeys: GenericRpcCall<() => Promise<Bytes>>;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Submit and subscribe to watch an extrinsic until unsubscribed
|
|
94
|
+
*
|
|
95
|
+
* @pubsub: author_extrinsicUpdate, author_submitAndWatchExtrinsic, author_unwatchExtrinsic
|
|
96
|
+
* @param {Bytes} extrinsic
|
|
97
|
+
**/
|
|
98
|
+
submitAndWatchExtrinsic: GenericRpcCall<
|
|
99
|
+
(extrinsic: Bytes, callback: Callback<TransactionStatus>) => Promise<Unsub>
|
|
100
|
+
>;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Submit hex-encoded extrinsic for inclusion in block.
|
|
104
|
+
*
|
|
105
|
+
* @rpcname: author_submitExtrinsic
|
|
106
|
+
* @param {Bytes} extrinsic
|
|
107
|
+
**/
|
|
108
|
+
submitExtrinsic: GenericRpcCall<(extrinsic: Bytes) => Promise<Hash>>;
|
|
109
|
+
|
|
110
|
+
[method: string]: GenericRpcCall;
|
|
111
|
+
};
|
|
112
|
+
chainHead: {
|
|
113
|
+
/**
|
|
114
|
+
* @rpcname: chainHead_unstable_body
|
|
115
|
+
**/
|
|
116
|
+
unstable_body: GenericRpcCall;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @rpcname: chainHead_unstable_call
|
|
120
|
+
**/
|
|
121
|
+
unstable_call: GenericRpcCall;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @rpcname: chainHead_unstable_continue
|
|
125
|
+
**/
|
|
126
|
+
unstable_continue: GenericRpcCall;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @rpcname: chainHead_unstable_follow
|
|
130
|
+
**/
|
|
131
|
+
unstable_follow: GenericRpcCall;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @rpcname: chainHead_unstable_genesisHash
|
|
135
|
+
**/
|
|
136
|
+
unstable_genesisHash: GenericRpcCall;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @rpcname: chainHead_unstable_header
|
|
140
|
+
**/
|
|
141
|
+
unstable_header: GenericRpcCall;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @rpcname: chainHead_unstable_stopOperation
|
|
145
|
+
**/
|
|
146
|
+
unstable_stopOperation: GenericRpcCall;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @rpcname: chainHead_unstable_storage
|
|
150
|
+
**/
|
|
151
|
+
unstable_storage: GenericRpcCall;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @rpcname: chainHead_unstable_unfollow
|
|
155
|
+
**/
|
|
156
|
+
unstable_unfollow: GenericRpcCall;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @rpcname: chainHead_unstable_unpin
|
|
160
|
+
**/
|
|
161
|
+
unstable_unpin: GenericRpcCall;
|
|
162
|
+
|
|
163
|
+
[method: string]: GenericRpcCall;
|
|
164
|
+
};
|
|
165
|
+
chain: {
|
|
166
|
+
/**
|
|
167
|
+
* Get header and body of a relay chain block
|
|
168
|
+
*
|
|
169
|
+
* @rpcname: chain_getBlock
|
|
170
|
+
* @param {BlockHash} at
|
|
171
|
+
**/
|
|
172
|
+
getBlock: GenericRpcCall<(at?: BlockHash) => Promise<Option<SignedBlock>>>;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Get the block hash for a specific block
|
|
176
|
+
*
|
|
177
|
+
* @rpcname: chain_getBlockHash
|
|
178
|
+
* @param {BlockNumber} blockNumber
|
|
179
|
+
**/
|
|
180
|
+
getBlockHash: GenericRpcCall<(blockNumber?: BlockNumber) => Promise<Option<BlockHash>>>;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Get hash of the last finalized block in the canon chain
|
|
184
|
+
*
|
|
185
|
+
* @rpcname: chain_getFinalizedHead
|
|
186
|
+
**/
|
|
187
|
+
getFinalizedHead: GenericRpcCall<() => Promise<BlockHash>>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Retrieves the header for a specific block
|
|
191
|
+
*
|
|
192
|
+
* @rpcname: chain_getHeader
|
|
193
|
+
* @param {BlockHash} at
|
|
194
|
+
**/
|
|
195
|
+
getHeader: GenericRpcCall<(at?: BlockHash) => Promise<Option<Header>>>;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* All head subscription.
|
|
199
|
+
*
|
|
200
|
+
* @pubsub: chain_allHead, chain_subscribeAllHeads, chain_unsubscribeAllHeads
|
|
201
|
+
**/
|
|
202
|
+
subscribeAllHeads: GenericRpcCall<(callback: Callback<Header>) => Promise<Unsub>>;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Retrieves the best finalized header via subscription
|
|
206
|
+
*
|
|
207
|
+
* @pubsub: chain_finalizedHead, chain_subscribeFinalizedHeads, chain_unsubscribeFinalizedHeads
|
|
208
|
+
**/
|
|
209
|
+
subscribeFinalizedHeads: GenericRpcCall<(callback: Callback<Header>) => Promise<Unsub>>;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Retrieves the best header via subscription
|
|
213
|
+
*
|
|
214
|
+
* @pubsub: chain_newHead, chain_subscribeNewHeads, chain_unsubscribeNewHeads
|
|
215
|
+
**/
|
|
216
|
+
subscribeNewHeads: GenericRpcCall<(callback: Callback<Header>) => Promise<Unsub>>;
|
|
217
|
+
|
|
218
|
+
[method: string]: GenericRpcCall;
|
|
219
|
+
};
|
|
220
|
+
childstate: {
|
|
221
|
+
/**
|
|
222
|
+
* Returns the keys with prefix from a child storage, leave empty to get all the keys
|
|
223
|
+
*
|
|
224
|
+
* @rpcname: childstate_getKeys
|
|
225
|
+
* @deprecated: Please use `getKeysPaged` with proper paging support
|
|
226
|
+
* @param {PrefixedStorageKey} childStorageKey
|
|
227
|
+
* @param {StorageKey} prefix
|
|
228
|
+
* @param {BlockHash} at
|
|
229
|
+
**/
|
|
230
|
+
getKeys: GenericRpcCall<
|
|
231
|
+
(childStorageKey: PrefixedStorageKey, prefix: StorageKey, at?: BlockHash) => Promise<Array<StorageKey>>
|
|
232
|
+
>;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Returns the keys with prefix from a child storage with pagination support.
|
|
236
|
+
* Up to `count` keys will be returned.
|
|
237
|
+
* If `start_key` is passed, return next keys in storage in lexicographic order.
|
|
238
|
+
*
|
|
239
|
+
* @rpcname: childstate_getKeysPaged
|
|
240
|
+
* @param {PrefixedStorageKey} childStorageKey
|
|
241
|
+
* @param {Option<StorageKey>} prefix
|
|
242
|
+
* @param {number} count
|
|
243
|
+
* @param {StorageKey} startKey
|
|
244
|
+
* @param {BlockHash} at
|
|
245
|
+
**/
|
|
246
|
+
getKeysPaged: GenericRpcCall<
|
|
247
|
+
(
|
|
248
|
+
childStorageKey: PrefixedStorageKey,
|
|
249
|
+
prefix: Option<StorageKey>,
|
|
250
|
+
count: number,
|
|
251
|
+
startKey?: StorageKey,
|
|
252
|
+
at?: BlockHash,
|
|
253
|
+
) => Promise<Array<StorageKey>>
|
|
254
|
+
>;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Returns a child storage entry at specific block's state.
|
|
258
|
+
*
|
|
259
|
+
* @rpcname: childstate_getStorage
|
|
260
|
+
* @param {PrefixedStorageKey} childStorageKey
|
|
261
|
+
* @param {StorageKey} key
|
|
262
|
+
* @param {BlockHash} at
|
|
263
|
+
**/
|
|
264
|
+
getStorage: GenericRpcCall<
|
|
265
|
+
(childStorageKey: PrefixedStorageKey, key: StorageKey, at?: BlockHash) => Promise<Option<StorageData>>
|
|
266
|
+
>;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Returns child storage entries for multiple keys at a specific block's state.
|
|
270
|
+
*
|
|
271
|
+
* @rpcname: childstate_getStorageEntries
|
|
272
|
+
* @param {PrefixedStorageKey} childStorageKey
|
|
273
|
+
* @param {Array<StorageKey>} keys
|
|
274
|
+
* @param {BlockHash} at
|
|
275
|
+
**/
|
|
276
|
+
getStorageEntries: GenericRpcCall<
|
|
277
|
+
(
|
|
278
|
+
childStorageKey: PrefixedStorageKey,
|
|
279
|
+
keys: Array<StorageKey>,
|
|
280
|
+
at?: BlockHash,
|
|
281
|
+
) => Promise<Array<Option<StorageData>>>
|
|
282
|
+
>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Returns the hash of a child storage entry at a block's state.
|
|
286
|
+
*
|
|
287
|
+
* @rpcname: childstate_getStorageHash
|
|
288
|
+
* @param {PrefixedStorageKey} childStorageKey
|
|
289
|
+
* @param {StorageKey} key
|
|
290
|
+
* @param {BlockHash} at
|
|
291
|
+
**/
|
|
292
|
+
getStorageHash: GenericRpcCall<
|
|
293
|
+
(childStorageKey: PrefixedStorageKey, key: StorageKey, at?: BlockHash) => Promise<Option<Hash>>
|
|
294
|
+
>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Returns the size of a child storage entry at a block's state
|
|
298
|
+
*
|
|
299
|
+
* @rpcname: childstate_getStorageSize
|
|
300
|
+
* @param {PrefixedStorageKey} childStorageKey
|
|
301
|
+
* @param {StorageKey} key
|
|
302
|
+
* @param {BlockHash} at
|
|
303
|
+
**/
|
|
304
|
+
getStorageSize: GenericRpcCall<
|
|
305
|
+
(childStorageKey: PrefixedStorageKey, key: StorageKey, at?: BlockHash) => Promise<Option<number>>
|
|
306
|
+
>;
|
|
307
|
+
|
|
308
|
+
[method: string]: GenericRpcCall;
|
|
309
|
+
};
|
|
310
|
+
debug: {
|
|
311
|
+
/**
|
|
312
|
+
* @rpcname: debug_traceBlockByHash
|
|
313
|
+
**/
|
|
314
|
+
traceBlockByHash: GenericRpcCall;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @rpcname: debug_traceBlockByNumber
|
|
318
|
+
**/
|
|
319
|
+
traceBlockByNumber: GenericRpcCall;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @rpcname: debug_traceTransaction
|
|
323
|
+
**/
|
|
324
|
+
traceTransaction: GenericRpcCall;
|
|
325
|
+
|
|
326
|
+
[method: string]: GenericRpcCall;
|
|
327
|
+
};
|
|
328
|
+
eth: {
|
|
329
|
+
/**
|
|
330
|
+
* @rpcname: eth_accounts
|
|
331
|
+
**/
|
|
332
|
+
accounts: GenericRpcCall;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @rpcname: eth_blockNumber
|
|
336
|
+
**/
|
|
337
|
+
blockNumber: GenericRpcCall;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @rpcname: eth_call
|
|
341
|
+
**/
|
|
342
|
+
call: GenericRpcCall;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @rpcname: eth_chainId
|
|
346
|
+
**/
|
|
347
|
+
chainId: GenericRpcCall;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* @rpcname: eth_coinbase
|
|
351
|
+
**/
|
|
352
|
+
coinbase: GenericRpcCall;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @rpcname: eth_estimateGas
|
|
356
|
+
**/
|
|
357
|
+
estimateGas: GenericRpcCall;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* @rpcname: eth_feeHistory
|
|
361
|
+
**/
|
|
362
|
+
feeHistory: GenericRpcCall;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* @rpcname: eth_gasPrice
|
|
366
|
+
**/
|
|
367
|
+
gasPrice: GenericRpcCall;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @rpcname: eth_getBalance
|
|
371
|
+
**/
|
|
372
|
+
getBalance: GenericRpcCall;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* @rpcname: eth_getBlockByHash
|
|
376
|
+
**/
|
|
377
|
+
getBlockByHash: GenericRpcCall;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* @rpcname: eth_getBlockByNumber
|
|
381
|
+
**/
|
|
382
|
+
getBlockByNumber: GenericRpcCall;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* @rpcname: eth_getBlockReceipts
|
|
386
|
+
**/
|
|
387
|
+
getBlockReceipts: GenericRpcCall;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* @rpcname: eth_getBlockTransactionCountByHash
|
|
391
|
+
**/
|
|
392
|
+
getBlockTransactionCountByHash: GenericRpcCall;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* @rpcname: eth_getBlockTransactionCountByNumber
|
|
396
|
+
**/
|
|
397
|
+
getBlockTransactionCountByNumber: GenericRpcCall;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* @rpcname: eth_getCode
|
|
401
|
+
**/
|
|
402
|
+
getCode: GenericRpcCall;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* @rpcname: eth_getFilterChanges
|
|
406
|
+
**/
|
|
407
|
+
getFilterChanges: GenericRpcCall;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @rpcname: eth_getFilterLogs
|
|
411
|
+
**/
|
|
412
|
+
getFilterLogs: GenericRpcCall;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* @rpcname: eth_getLogs
|
|
416
|
+
**/
|
|
417
|
+
getLogs: GenericRpcCall;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @rpcname: eth_getStorageAt
|
|
421
|
+
**/
|
|
422
|
+
getStorageAt: GenericRpcCall;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @rpcname: eth_getTransactionByBlockHashAndIndex
|
|
426
|
+
**/
|
|
427
|
+
getTransactionByBlockHashAndIndex: GenericRpcCall;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @rpcname: eth_getTransactionByBlockNumberAndIndex
|
|
431
|
+
**/
|
|
432
|
+
getTransactionByBlockNumberAndIndex: GenericRpcCall;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* @rpcname: eth_getTransactionByHash
|
|
436
|
+
**/
|
|
437
|
+
getTransactionByHash: GenericRpcCall;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @rpcname: eth_getTransactionCount
|
|
441
|
+
**/
|
|
442
|
+
getTransactionCount: GenericRpcCall;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @rpcname: eth_getTransactionReceipt
|
|
446
|
+
**/
|
|
447
|
+
getTransactionReceipt: GenericRpcCall;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* @rpcname: eth_getUncleByBlockHashAndIndex
|
|
451
|
+
**/
|
|
452
|
+
getUncleByBlockHashAndIndex: GenericRpcCall;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @rpcname: eth_getUncleByBlockNumberAndIndex
|
|
456
|
+
**/
|
|
457
|
+
getUncleByBlockNumberAndIndex: GenericRpcCall;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @rpcname: eth_getUncleCountByBlockHash
|
|
461
|
+
**/
|
|
462
|
+
getUncleCountByBlockHash: GenericRpcCall;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* @rpcname: eth_getUncleCountByBlockNumber
|
|
466
|
+
**/
|
|
467
|
+
getUncleCountByBlockNumber: GenericRpcCall;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* @rpcname: eth_getWork
|
|
471
|
+
**/
|
|
472
|
+
getWork: GenericRpcCall;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* @rpcname: eth_hashrate
|
|
476
|
+
**/
|
|
477
|
+
hashrate: GenericRpcCall;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* @rpcname: eth_maxPriorityFeePerGas
|
|
481
|
+
**/
|
|
482
|
+
maxPriorityFeePerGas: GenericRpcCall;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @rpcname: eth_mining
|
|
486
|
+
**/
|
|
487
|
+
mining: GenericRpcCall;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* @rpcname: eth_newBlockFilter
|
|
491
|
+
**/
|
|
492
|
+
newBlockFilter: GenericRpcCall;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* @rpcname: eth_newFilter
|
|
496
|
+
**/
|
|
497
|
+
newFilter: GenericRpcCall;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* @rpcname: eth_newPendingTransactionFilter
|
|
501
|
+
**/
|
|
502
|
+
newPendingTransactionFilter: GenericRpcCall;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* @rpcname: eth_protocolVersion
|
|
506
|
+
**/
|
|
507
|
+
protocolVersion: GenericRpcCall;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* @rpcname: eth_sendRawTransaction
|
|
511
|
+
**/
|
|
512
|
+
sendRawTransaction: GenericRpcCall;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* @rpcname: eth_sendTransaction
|
|
516
|
+
**/
|
|
517
|
+
sendTransaction: GenericRpcCall;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* @rpcname: eth_submitHashrate
|
|
521
|
+
**/
|
|
522
|
+
submitHashrate: GenericRpcCall;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* @rpcname: eth_submitWork
|
|
526
|
+
**/
|
|
527
|
+
submitWork: GenericRpcCall;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* @rpcname: eth_subscribe
|
|
531
|
+
**/
|
|
532
|
+
subscribe: GenericRpcCall;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* @rpcname: eth_syncing
|
|
536
|
+
**/
|
|
537
|
+
syncing: GenericRpcCall;
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @rpcname: eth_uninstallFilter
|
|
541
|
+
**/
|
|
542
|
+
uninstallFilter: GenericRpcCall;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* @rpcname: eth_unsubscribe
|
|
546
|
+
**/
|
|
547
|
+
unsubscribe: GenericRpcCall;
|
|
548
|
+
|
|
549
|
+
[method: string]: GenericRpcCall;
|
|
550
|
+
};
|
|
551
|
+
moon: {
|
|
552
|
+
/**
|
|
553
|
+
* @rpcname: moon_isBlockFinalized
|
|
554
|
+
**/
|
|
555
|
+
isBlockFinalized: GenericRpcCall;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* @rpcname: moon_isTxFinalized
|
|
559
|
+
**/
|
|
560
|
+
isTxFinalized: GenericRpcCall;
|
|
561
|
+
|
|
562
|
+
[method: string]: GenericRpcCall;
|
|
563
|
+
};
|
|
564
|
+
net: {
|
|
565
|
+
/**
|
|
566
|
+
* @rpcname: net_listening
|
|
567
|
+
**/
|
|
568
|
+
listening: GenericRpcCall;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @rpcname: net_peerCount
|
|
572
|
+
**/
|
|
573
|
+
peerCount: GenericRpcCall;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* @rpcname: net_version
|
|
577
|
+
**/
|
|
578
|
+
version: GenericRpcCall;
|
|
579
|
+
|
|
580
|
+
[method: string]: GenericRpcCall;
|
|
581
|
+
};
|
|
582
|
+
offchain: {
|
|
583
|
+
/**
|
|
584
|
+
* Get offchain local storage under given key and prefix.
|
|
585
|
+
*
|
|
586
|
+
* @rpcname: offchain_localStorageGet
|
|
587
|
+
* @param {StorageKind} kind
|
|
588
|
+
* @param {Bytes} key
|
|
589
|
+
**/
|
|
590
|
+
localStorageGet: GenericRpcCall<(kind: StorageKind, key: Bytes) => Promise<Option<Bytes>>>;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Set offchain local storage under given key and prefix.
|
|
594
|
+
*
|
|
595
|
+
* @rpcname: offchain_localStorageSet
|
|
596
|
+
* @param {StorageKind} kind
|
|
597
|
+
* @param {Bytes} key
|
|
598
|
+
* @param {Bytes} value
|
|
599
|
+
**/
|
|
600
|
+
localStorageSet: GenericRpcCall<(kind: StorageKind, key: Bytes, value: Bytes) => Promise<void>>;
|
|
601
|
+
|
|
602
|
+
[method: string]: GenericRpcCall;
|
|
603
|
+
};
|
|
604
|
+
payment: {
|
|
605
|
+
/**
|
|
606
|
+
* Query the detailed fee of a given encoded extrinsic
|
|
607
|
+
*
|
|
608
|
+
* @rpcname: payment_queryFeeDetails
|
|
609
|
+
* @param {Bytes} extrinsic
|
|
610
|
+
* @param {BlockHash} at
|
|
611
|
+
**/
|
|
612
|
+
queryFeeDetails: GenericRpcCall<(extrinsic: Bytes, at?: BlockHash) => Promise<FeeDetails>>;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Retrieves the fee information for an encoded extrinsic
|
|
616
|
+
*
|
|
617
|
+
* @rpcname: payment_queryInfo
|
|
618
|
+
* @param {Bytes} extrinsic
|
|
619
|
+
* @param {BlockHash} at
|
|
620
|
+
**/
|
|
621
|
+
queryInfo: GenericRpcCall<(extrinsic: Bytes, at?: BlockHash) => Promise<RuntimeDispatchInfo>>;
|
|
622
|
+
|
|
623
|
+
[method: string]: GenericRpcCall;
|
|
624
|
+
};
|
|
625
|
+
rpc: {
|
|
626
|
+
/**
|
|
627
|
+
* Retrieves the list of RPC methods that are exposed by the node
|
|
628
|
+
*
|
|
629
|
+
* @rpcname: rpc_methods
|
|
630
|
+
**/
|
|
631
|
+
methods: GenericRpcCall<() => Promise<RpcMethods>>;
|
|
632
|
+
|
|
633
|
+
[method: string]: GenericRpcCall;
|
|
634
|
+
};
|
|
635
|
+
state: {
|
|
636
|
+
/**
|
|
637
|
+
* Call a method from the runtime API at a block's state.
|
|
638
|
+
*
|
|
639
|
+
* @rpcname: state_call
|
|
640
|
+
* @param {string} method
|
|
641
|
+
* @param {Bytes} data
|
|
642
|
+
* @param {BlockHash} at
|
|
643
|
+
**/
|
|
644
|
+
call: GenericRpcCall<(method: string, data: Bytes, at?: BlockHash) => Promise<Bytes>>;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Returns proof of storage for child key entries at a specific block state.
|
|
648
|
+
*
|
|
649
|
+
* @rpcname: state_getChildReadProof
|
|
650
|
+
* @param {PrefixedStorageKey} childStorageKey
|
|
651
|
+
* @param {Array<StorageKey>} keys
|
|
652
|
+
* @param {BlockHash} at
|
|
653
|
+
**/
|
|
654
|
+
getChildReadProof: GenericRpcCall<
|
|
655
|
+
(childStorageKey: PrefixedStorageKey, keys: Array<StorageKey>, at?: BlockHash) => Promise<ReadProof>
|
|
656
|
+
>;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Returns the keys with prefix, leave empty to get all the keys.
|
|
660
|
+
*
|
|
661
|
+
* @rpcname: state_getKeys
|
|
662
|
+
* @deprecated: Please use `getKeysPaged` with proper paging support
|
|
663
|
+
* @param {StorageKey} prefix
|
|
664
|
+
* @param {BlockHash} at
|
|
665
|
+
**/
|
|
666
|
+
getKeys: GenericRpcCall<(prefix: StorageKey, at?: BlockHash) => Promise<Array<StorageKey>>>;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Returns the keys with prefix with pagination support. Up to `count` keys will be returned. If `start_key` is passed, return next keys in storage in lexicographic order.
|
|
670
|
+
*
|
|
671
|
+
* @rpcname: state_getKeysPaged
|
|
672
|
+
* @param {Option<StorageKey>} prefix
|
|
673
|
+
* @param {number} count
|
|
674
|
+
* @param {StorageKey} startKey
|
|
675
|
+
* @param {BlockHash} at
|
|
676
|
+
**/
|
|
677
|
+
getKeysPaged: GenericRpcCall<
|
|
678
|
+
(prefix: Option<StorageKey>, count: number, startKey?: StorageKey, at?: BlockHash) => Promise<Array<StorageKey>>
|
|
679
|
+
>;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Returns the runtime metadata
|
|
683
|
+
*
|
|
684
|
+
* @rpcname: state_getMetadata
|
|
685
|
+
* @param {BlockHash} at
|
|
686
|
+
**/
|
|
687
|
+
getMetadata: GenericRpcCall<(at?: BlockHash) => Promise<Metadata>>;
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Returns the keys with prefix, leave empty to get all the keys
|
|
691
|
+
*
|
|
692
|
+
* @rpcname: state_getPairs
|
|
693
|
+
* @deprecated: Please use `getKeysPaged` with proper paging support
|
|
694
|
+
* @param {StorageKey} prefix
|
|
695
|
+
* @param {BlockHash} at
|
|
696
|
+
**/
|
|
697
|
+
getPairs: GenericRpcCall<(prefix: StorageKey, at?: BlockHash) => Promise<Array<[StorageKey, StorageData]>>>;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Returns proof of storage entries at a specific block's state.
|
|
701
|
+
*
|
|
702
|
+
* @rpcname: state_getReadProof
|
|
703
|
+
* @param {Array<StorageKey>} keys
|
|
704
|
+
* @param {BlockHash} at
|
|
705
|
+
**/
|
|
706
|
+
getReadProof: GenericRpcCall<(keys: Array<StorageKey>, at?: BlockHash) => Promise<ReadProof>>;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Get the runtime version.
|
|
710
|
+
*
|
|
711
|
+
* @rpcname: state_getRuntimeVersion
|
|
712
|
+
**/
|
|
713
|
+
getRuntimeVersion: GenericRpcCall<() => Promise<RuntimeVersion>>;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Returns a storage entry at a specific block's state.
|
|
717
|
+
*
|
|
718
|
+
* @rpcname: state_getStorage
|
|
719
|
+
* @param {StorageKey} key
|
|
720
|
+
* @param {BlockHash} at
|
|
721
|
+
**/
|
|
722
|
+
getStorage: GenericRpcCall<(key: StorageKey, at?: BlockHash) => Promise<Option<StorageData>>>;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Returns the hash of a storage entry at a block's state.
|
|
726
|
+
*
|
|
727
|
+
* @rpcname: state_getStorageHash
|
|
728
|
+
* @param {StorageKey} key
|
|
729
|
+
* @param {BlockHash} at
|
|
730
|
+
**/
|
|
731
|
+
getStorageHash: GenericRpcCall<(key: StorageKey, at?: BlockHash) => Promise<Option<Hash>>>;
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Returns the hash of a storage entry at a block's state.
|
|
735
|
+
*
|
|
736
|
+
* @rpcname: state_getStorageSize
|
|
737
|
+
* @param {StorageKey} key
|
|
738
|
+
* @param {BlockHash} at
|
|
739
|
+
**/
|
|
740
|
+
getStorageSize: GenericRpcCall<(key: StorageKey, at?: BlockHash) => Promise<Option<bigint>>>;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Query historical storage entries (by key) starting from a block given as the second parameter. NOTE: The first returned result contains the initial state of storage for all keys. Subsequent values in the vector represent changes to the previous state (diffs). WARNING: The time complexity of this query is O(|keys|*dist(block, hash)), and the memory complexity is O(dist(block, hash)) -- use with caution.
|
|
744
|
+
*
|
|
745
|
+
* @rpcname: state_queryStorage
|
|
746
|
+
* @param {Array<StorageKey>} keys
|
|
747
|
+
* @param {Hash} fromBlock
|
|
748
|
+
* @param {BlockHash} at
|
|
749
|
+
**/
|
|
750
|
+
queryStorage: GenericRpcCall<
|
|
751
|
+
(keys: Array<StorageKey>, fromBlock: Hash, at?: BlockHash) => Promise<Array<StorageChangeSet>>
|
|
752
|
+
>;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Query storage entries (by key) at a block hash given as the second parameter. NOTE: Each StorageChangeSet in the result corresponds to exactly one element -- the storage value under an input key at the input block hash.
|
|
756
|
+
*
|
|
757
|
+
* @rpcname: state_queryStorageAt
|
|
758
|
+
* @param {Array<StorageKey>} keys
|
|
759
|
+
* @param {BlockHash} at
|
|
760
|
+
**/
|
|
761
|
+
queryStorageAt: GenericRpcCall<(keys: Array<StorageKey>, at?: BlockHash) => Promise<Array<StorageChangeSet>>>;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* New runtime version subscription
|
|
765
|
+
*
|
|
766
|
+
* @pubsub: state_runtimeVersion, state_subscribeRuntimeVersion, state_unsubscribeRuntimeVersion
|
|
767
|
+
**/
|
|
768
|
+
subscribeRuntimeVersion: GenericRpcCall<(callback: Callback<RuntimeVersion>) => Promise<Unsub>>;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Subscribes to storage changes for the provided keys
|
|
772
|
+
*
|
|
773
|
+
* @pubsub: state_storage, state_subscribeStorage, state_unsubscribeStorage
|
|
774
|
+
* @param {Array<StorageKey>} keys
|
|
775
|
+
**/
|
|
776
|
+
subscribeStorage: GenericRpcCall<(keys: Array<StorageKey>, callback: Callback<StorageChangeSet>) => Promise<Unsub>>;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* The `traceBlock` RPC provides a way to trace the re-execution of a single block, collecting Spans and Events from both the client and the relevant WASM runtime.
|
|
780
|
+
*
|
|
781
|
+
* @rpcname: state_traceBlock
|
|
782
|
+
* @param {Hash} block
|
|
783
|
+
* @param {Option<string>} targets
|
|
784
|
+
* @param {Option<string>} storage_keys
|
|
785
|
+
* @param {Option<string>} methods
|
|
786
|
+
**/
|
|
787
|
+
traceBlock: GenericRpcCall<
|
|
788
|
+
(
|
|
789
|
+
block: Hash,
|
|
790
|
+
targets: Option<string>,
|
|
791
|
+
storage_keys: Option<string>,
|
|
792
|
+
methods: Option<string>,
|
|
793
|
+
) => Promise<TraceBlockResponse>
|
|
794
|
+
>;
|
|
795
|
+
|
|
796
|
+
[method: string]: GenericRpcCall;
|
|
797
|
+
};
|
|
798
|
+
system: {
|
|
799
|
+
/**
|
|
800
|
+
* Returns the next valid index (aka nonce) for given account.
|
|
801
|
+
*
|
|
802
|
+
* This method takes into consideration all pending transactions
|
|
803
|
+
* currently in the pool and if no transactions are found in the pool
|
|
804
|
+
* it fallbacks to query the index from the runtime (aka. state nonce).
|
|
805
|
+
*
|
|
806
|
+
* @rpcname: system_accountNextIndex
|
|
807
|
+
* @param {string} address
|
|
808
|
+
**/
|
|
809
|
+
accountNextIndex: GenericRpcCall<(address: string) => Promise<number>>;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Adds the supplied directives to the current log filter
|
|
813
|
+
*
|
|
814
|
+
* The syntax is identical to the CLI `<target>=<level>`:
|
|
815
|
+
*
|
|
816
|
+
* `sync=debug,state=trace`
|
|
817
|
+
*
|
|
818
|
+
* @rpcname: system_addLogFilter
|
|
819
|
+
* @param {string} directives
|
|
820
|
+
**/
|
|
821
|
+
addLogFilter: GenericRpcCall<(directives: string) => Promise<void>>;
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Adds a reserved peer. Returns the empty string or an error. The string
|
|
825
|
+
* parameter should encode a `p2p` multiaddr.
|
|
826
|
+
*
|
|
827
|
+
* `/ip4/198.51.100.19/tcp/30333/p2p/QmSk5HQbn6LhUwDiNMseVUjuRYhEtYj4aUZ6WfWoGURpdV`
|
|
828
|
+
* is an example of a valid, passing multiaddr with PeerId attached.
|
|
829
|
+
*
|
|
830
|
+
* @rpcname: system_addReservedPeer
|
|
831
|
+
* @param {string} peer
|
|
832
|
+
**/
|
|
833
|
+
addReservedPeer: GenericRpcCall<(peer: string) => Promise<void>>;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Get the chain's name. Given as a string identifier.
|
|
837
|
+
*
|
|
838
|
+
* @rpcname: system_chain
|
|
839
|
+
**/
|
|
840
|
+
chain: GenericRpcCall<() => Promise<string>>;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Get the chain's type.
|
|
844
|
+
*
|
|
845
|
+
* @rpcname: system_chainType
|
|
846
|
+
**/
|
|
847
|
+
chainType: GenericRpcCall<() => Promise<ChainType>>;
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Dry run an extrinsic at a given block. Return SCALE encoded ApplyExtrinsicResult.
|
|
851
|
+
*
|
|
852
|
+
* @rpcname: system_dryRun
|
|
853
|
+
* @param {Bytes} extrinsic
|
|
854
|
+
* @param {BlockHash} at
|
|
855
|
+
**/
|
|
856
|
+
dryRun: GenericRpcCall<(extrinsic: Bytes, at?: BlockHash) => Promise<ApplyExtrinsicResult>>;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Return health status of the node.
|
|
860
|
+
*
|
|
861
|
+
* Node is considered healthy if it is:
|
|
862
|
+
* - connected to some peers (unless running in dev mode)
|
|
863
|
+
* - not performing a major sync
|
|
864
|
+
*
|
|
865
|
+
* @rpcname: system_health
|
|
866
|
+
**/
|
|
867
|
+
health: GenericRpcCall<() => Promise<Health>>;
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Returns the multi-addresses that the local node is listening on
|
|
871
|
+
*
|
|
872
|
+
* The addresses include a trailing `/p2p/` with the local PeerId, and are thus suitable to
|
|
873
|
+
* be passed to `addReservedPeer` or as a bootnode address for example.
|
|
874
|
+
*
|
|
875
|
+
* @rpcname: system_localListenAddresses
|
|
876
|
+
**/
|
|
877
|
+
localListenAddresses: GenericRpcCall<() => Promise<Array<string>>>;
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Returns the base58-encoded PeerId of the node.
|
|
881
|
+
*
|
|
882
|
+
* @rpcname: system_localPeerId
|
|
883
|
+
**/
|
|
884
|
+
localPeerId: GenericRpcCall<() => Promise<string>>;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Get the node's implementation name. Plain old string.
|
|
888
|
+
*
|
|
889
|
+
* @rpcname: system_name
|
|
890
|
+
**/
|
|
891
|
+
name: GenericRpcCall<() => Promise<string>>;
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Returns the roles the node is running as
|
|
895
|
+
*
|
|
896
|
+
* @rpcname: system_nodeRoles
|
|
897
|
+
**/
|
|
898
|
+
nodeRoles: GenericRpcCall<() => Promise<Array<NodeRole>>>;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Returns the currently connected peers
|
|
902
|
+
*
|
|
903
|
+
* @rpcname: system_peers
|
|
904
|
+
**/
|
|
905
|
+
peers: GenericRpcCall<() => Promise<Array<PeerInfo>>>;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Get a custom set of properties as a JSON object, defined in the chain spec.
|
|
909
|
+
*
|
|
910
|
+
* @rpcname: system_properties
|
|
911
|
+
**/
|
|
912
|
+
properties: GenericRpcCall<() => Promise<ChainProperties>>;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Remove a reserved peer. Returns the empty string or an error. The string
|
|
916
|
+
* should encode only the PeerId e.g. `QmSk5HQbn6LhUwDiNMseVUjuRYhEtYj4aUZ6WfWoGURpdV`.
|
|
917
|
+
*
|
|
918
|
+
* @rpcname: system_removeReservedPeer
|
|
919
|
+
* @param {string} peerId
|
|
920
|
+
**/
|
|
921
|
+
removeReservedPeer: GenericRpcCall<(peerId: string) => Promise<void>>;
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Returns the list of reserved peers
|
|
925
|
+
*
|
|
926
|
+
* @rpcname: system_reservedPeers
|
|
927
|
+
**/
|
|
928
|
+
reservedPeers: GenericRpcCall<() => Promise<Array<string>>>;
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Resets the log filter to Substrate defaults
|
|
932
|
+
*
|
|
933
|
+
* @rpcname: system_resetLogFilter
|
|
934
|
+
**/
|
|
935
|
+
resetLogFilter: GenericRpcCall<() => Promise<void>>;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Returns the state of the syncing of the node: starting block, current best block, highest known block.
|
|
939
|
+
*
|
|
940
|
+
* @rpcname: system_syncState
|
|
941
|
+
**/
|
|
942
|
+
syncState: GenericRpcCall<() => Promise<SyncState>>;
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* Returns current state of the network.
|
|
946
|
+
*
|
|
947
|
+
* **Warning**: This API is not stable. Please do not programmatically interpret its output,
|
|
948
|
+
* as its format might change at any time.
|
|
949
|
+
*
|
|
950
|
+
* @rpcname: system_unstable_networkState
|
|
951
|
+
**/
|
|
952
|
+
unstable_networkState: GenericRpcCall<() => Promise<NetworkState>>;
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Get the node implementation's version. Should be a semver string.
|
|
956
|
+
*
|
|
957
|
+
* @rpcname: system_version
|
|
958
|
+
**/
|
|
959
|
+
version: GenericRpcCall<() => Promise<string>>;
|
|
960
|
+
|
|
961
|
+
[method: string]: GenericRpcCall;
|
|
962
|
+
};
|
|
963
|
+
trace: {
|
|
964
|
+
/**
|
|
965
|
+
* @rpcname: trace_filter
|
|
966
|
+
**/
|
|
967
|
+
filter: GenericRpcCall;
|
|
968
|
+
|
|
969
|
+
[method: string]: GenericRpcCall;
|
|
970
|
+
};
|
|
971
|
+
transaction: {
|
|
972
|
+
/**
|
|
973
|
+
* @rpcname: transaction_unstable_submitAndWatch
|
|
974
|
+
**/
|
|
975
|
+
unstable_submitAndWatch: GenericRpcCall;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* @rpcname: transaction_unstable_unwatch
|
|
979
|
+
**/
|
|
980
|
+
unstable_unwatch: GenericRpcCall;
|
|
981
|
+
|
|
982
|
+
[method: string]: GenericRpcCall;
|
|
983
|
+
};
|
|
984
|
+
txpool: {
|
|
985
|
+
/**
|
|
986
|
+
* @rpcname: txpool_content
|
|
987
|
+
**/
|
|
988
|
+
content: GenericRpcCall;
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* @rpcname: txpool_inspect
|
|
992
|
+
**/
|
|
993
|
+
inspect: GenericRpcCall;
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* @rpcname: txpool_status
|
|
997
|
+
**/
|
|
998
|
+
status: GenericRpcCall;
|
|
999
|
+
|
|
1000
|
+
[method: string]: GenericRpcCall;
|
|
1001
|
+
};
|
|
1002
|
+
web3: {
|
|
1003
|
+
/**
|
|
1004
|
+
* @rpcname: web3_clientVersion
|
|
1005
|
+
**/
|
|
1006
|
+
clientVersion: GenericRpcCall;
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* @rpcname: web3_sha3
|
|
1010
|
+
**/
|
|
1011
|
+
sha3: GenericRpcCall;
|
|
1012
|
+
|
|
1013
|
+
[method: string]: GenericRpcCall;
|
|
1014
|
+
};
|
|
809
1015
|
}
|