@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.0

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