@dedot/chaintypes 0.0.1-alpha.22

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