@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
@@ -0,0 +1,726 @@
1
+ import type { GenericRpcCalls, Unsub, Callback, GenericRpcCall, ExtrinsicOrHash, EpochAuthorship, EncodedFinalityProofs, ReportedRoundStates, JustificationNotification, LeavesProof, StorageKind, RpcMethods, ReadProof, StorageChangeSet, TraceBlockResponse, MigrationStatusResult, ChainType, Health, NodeRole, PeerInfo, ChainProperties, SyncState, NetworkState } from '@dedot/types';
2
+ import type { Bytes, Hash, TransactionStatus, VersionedFinalityProof, Option, SignedBlock, BlockHash, BlockNumber, Header, StorageKey, PrefixedStorageKey, StorageData, FeeDetails, RuntimeDispatchInfo, Metadata, RuntimeVersion, ApplyExtrinsicResult } from '@dedot/codecs';
3
+ export interface RpcCalls extends GenericRpcCalls {
4
+ archive: {
5
+ /**
6
+ * @rpcname: archive_unstable_body
7
+ **/
8
+ unstable_body: GenericRpcCall;
9
+ /**
10
+ * @rpcname: archive_unstable_call
11
+ **/
12
+ unstable_call: GenericRpcCall;
13
+ /**
14
+ * @rpcname: archive_unstable_finalizedHeight
15
+ **/
16
+ unstable_finalizedHeight: GenericRpcCall;
17
+ /**
18
+ * @rpcname: archive_unstable_genesisHash
19
+ **/
20
+ unstable_genesisHash: GenericRpcCall;
21
+ /**
22
+ * @rpcname: archive_unstable_hashByHeight
23
+ **/
24
+ unstable_hashByHeight: GenericRpcCall;
25
+ /**
26
+ * @rpcname: archive_unstable_header
27
+ **/
28
+ unstable_header: GenericRpcCall;
29
+ /**
30
+ * @rpcname: archive_unstable_storage
31
+ **/
32
+ unstable_storage: GenericRpcCall;
33
+ [method: string]: GenericRpcCall;
34
+ };
35
+ author: {
36
+ /**
37
+ * Checks if the keystore has private keys for the given public key and key type. Returns `true` if a private key could be found.
38
+ *
39
+ * @rpcname: author_hasKey
40
+ * @param {Bytes} publicKey
41
+ * @param {string} keyType
42
+ **/
43
+ hasKey: GenericRpcCall<(publicKey: Bytes, keyType: string) => Promise<boolean>>;
44
+ /**
45
+ * 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.
46
+ *
47
+ * @rpcname: author_hasSessionKeys
48
+ * @param {Bytes} sessionKeys
49
+ **/
50
+ hasSessionKeys: GenericRpcCall<(sessionKeys: Bytes) => Promise<boolean>>;
51
+ /**
52
+ * Insert a key into the keystore.
53
+ *
54
+ * @rpcname: author_insertKey
55
+ * @param {string} keyType
56
+ * @param {string} suri
57
+ * @param {Bytes} publicKey
58
+ **/
59
+ insertKey: GenericRpcCall<(keyType: string, suri: string, publicKey: Bytes) => Promise<void>>;
60
+ /**
61
+ * Returns all pending extrinsics, potentially grouped by sender.
62
+ *
63
+ * @rpcname: author_pendingExtrinsics
64
+ **/
65
+ pendingExtrinsics: GenericRpcCall<() => Promise<Array<Bytes>>>;
66
+ /**
67
+ * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting.
68
+ *
69
+ * @rpcname: author_removeExtrinsic
70
+ * @param {Array<ExtrinsicOrHash>} bytesOrHash
71
+ **/
72
+ removeExtrinsic: GenericRpcCall<(bytesOrHash: Array<ExtrinsicOrHash>) => Promise<Array<Hash>>>;
73
+ /**
74
+ * Generate new session keys and returns the corresponding public keys.
75
+ *
76
+ * @rpcname: author_rotateKeys
77
+ **/
78
+ rotateKeys: GenericRpcCall<() => Promise<Bytes>>;
79
+ /**
80
+ * Submit and subscribe to watch an extrinsic until unsubscribed
81
+ *
82
+ * @pubsub: author_extrinsicUpdate, author_submitAndWatchExtrinsic, author_unwatchExtrinsic
83
+ * @param {Bytes} extrinsic
84
+ **/
85
+ submitAndWatchExtrinsic: GenericRpcCall<(extrinsic: Bytes, callback: Callback<TransactionStatus>) => Promise<Unsub>>;
86
+ /**
87
+ * Submit hex-encoded extrinsic for inclusion in block.
88
+ *
89
+ * @rpcname: author_submitExtrinsic
90
+ * @param {Bytes} extrinsic
91
+ **/
92
+ submitExtrinsic: GenericRpcCall<(extrinsic: Bytes) => Promise<Hash>>;
93
+ [method: string]: GenericRpcCall;
94
+ };
95
+ babe: {
96
+ /**
97
+ * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore.
98
+ *
99
+ * @rpcname: babe_epochAuthorship
100
+ **/
101
+ epochAuthorship: GenericRpcCall<() => Promise<Record<string, EpochAuthorship>>>;
102
+ [method: string]: GenericRpcCall;
103
+ };
104
+ beefy: {
105
+ /**
106
+ * Returns hash of the latest BEEFY finalized block as seen by this client.
107
+ * The latest BEEFY block might not be available if the BEEFY gadget is not running
108
+ * in the network or if the client is still initializing or syncing with the network.
109
+ * In such case an error would be returned.
110
+ *
111
+ * @rpcname: beefy_getFinalizedHead
112
+ **/
113
+ getFinalizedHead: GenericRpcCall<() => Promise<Hash>>;
114
+ /**
115
+ * Returns the block most recently finalized by BEEFY, alongside its justification.
116
+ *
117
+ * @pubsub: beefy_justifications, beefy_subscribeJustifications, beefy_unsubscribeJustifications
118
+ **/
119
+ subscribeJustifications: GenericRpcCall<(callback: Callback<VersionedFinalityProof>) => Promise<Unsub>>;
120
+ [method: string]: GenericRpcCall;
121
+ };
122
+ chainHead: {
123
+ /**
124
+ * @rpcname: chainHead_unstable_body
125
+ **/
126
+ unstable_body: GenericRpcCall;
127
+ /**
128
+ * @rpcname: chainHead_unstable_call
129
+ **/
130
+ unstable_call: GenericRpcCall;
131
+ /**
132
+ * @rpcname: chainHead_unstable_continue
133
+ **/
134
+ unstable_continue: GenericRpcCall;
135
+ /**
136
+ * @rpcname: chainHead_unstable_follow
137
+ **/
138
+ unstable_follow: GenericRpcCall;
139
+ /**
140
+ * @rpcname: chainHead_unstable_header
141
+ **/
142
+ unstable_header: GenericRpcCall;
143
+ /**
144
+ * @rpcname: chainHead_unstable_stopOperation
145
+ **/
146
+ unstable_stopOperation: GenericRpcCall;
147
+ /**
148
+ * @rpcname: chainHead_unstable_storage
149
+ **/
150
+ unstable_storage: GenericRpcCall;
151
+ /**
152
+ * @rpcname: chainHead_unstable_unfollow
153
+ **/
154
+ unstable_unfollow: GenericRpcCall;
155
+ /**
156
+ * @rpcname: chainHead_unstable_unpin
157
+ **/
158
+ unstable_unpin: GenericRpcCall;
159
+ [method: string]: GenericRpcCall;
160
+ };
161
+ chainSpec: {
162
+ /**
163
+ * @rpcname: chainSpec_v1_chainName
164
+ **/
165
+ v1_chainName: GenericRpcCall;
166
+ /**
167
+ * @rpcname: chainSpec_v1_genesisHash
168
+ **/
169
+ v1_genesisHash: GenericRpcCall;
170
+ /**
171
+ * @rpcname: chainSpec_v1_properties
172
+ **/
173
+ v1_properties: GenericRpcCall;
174
+ [method: string]: GenericRpcCall;
175
+ };
176
+ chain: {
177
+ /**
178
+ * Get header and body of a relay chain block
179
+ *
180
+ * @rpcname: chain_getBlock
181
+ * @param {BlockHash} at
182
+ **/
183
+ getBlock: GenericRpcCall<(at?: BlockHash) => Promise<Option<SignedBlock>>>;
184
+ /**
185
+ * Get the block hash for a specific block
186
+ *
187
+ * @rpcname: chain_getBlockHash
188
+ * @param {BlockNumber} blockNumber
189
+ **/
190
+ getBlockHash: GenericRpcCall<(blockNumber?: BlockNumber) => Promise<Option<BlockHash>>>;
191
+ /**
192
+ * Get hash of the last finalized block in the canon chain
193
+ *
194
+ * @rpcname: chain_getFinalizedHead
195
+ **/
196
+ getFinalizedHead: GenericRpcCall<() => Promise<BlockHash>>;
197
+ /**
198
+ * Retrieves the header for a specific block
199
+ *
200
+ * @rpcname: chain_getHeader
201
+ * @param {BlockHash} at
202
+ **/
203
+ getHeader: GenericRpcCall<(at?: BlockHash) => Promise<Option<Header>>>;
204
+ /**
205
+ * All head subscription.
206
+ *
207
+ * @pubsub: chain_allHead, chain_subscribeAllHeads, chain_unsubscribeAllHeads
208
+ **/
209
+ subscribeAllHeads: GenericRpcCall<(callback: Callback<Header>) => Promise<Unsub>>;
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
+ * Retrieves the best header via subscription
218
+ *
219
+ * @pubsub: chain_newHead, chain_subscribeNewHeads, chain_unsubscribeNewHeads
220
+ **/
221
+ subscribeNewHeads: GenericRpcCall<(callback: Callback<Header>) => Promise<Unsub>>;
222
+ [method: string]: GenericRpcCall;
223
+ };
224
+ childstate: {
225
+ /**
226
+ * Returns the keys with prefix from a child storage, leave empty to get all the keys
227
+ *
228
+ * @rpcname: childstate_getKeys
229
+ * @deprecated: Please use `getKeysPaged` with proper paging support
230
+ * @param {PrefixedStorageKey} childStorageKey
231
+ * @param {StorageKey} prefix
232
+ * @param {BlockHash} at
233
+ **/
234
+ getKeys: GenericRpcCall<(childStorageKey: PrefixedStorageKey, prefix: StorageKey, at?: BlockHash) => Promise<Array<StorageKey>>>;
235
+ /**
236
+ * Returns the keys with prefix from a child storage with pagination support.
237
+ * Up to `count` keys will be returned.
238
+ * If `start_key` is passed, return next keys in storage in lexicographic order.
239
+ *
240
+ * @rpcname: childstate_getKeysPaged
241
+ * @param {PrefixedStorageKey} childStorageKey
242
+ * @param {Option<StorageKey>} prefix
243
+ * @param {number} count
244
+ * @param {StorageKey} startKey
245
+ * @param {BlockHash} at
246
+ **/
247
+ getKeysPaged: GenericRpcCall<(childStorageKey: PrefixedStorageKey, prefix: Option<StorageKey>, count: number, startKey?: StorageKey, at?: BlockHash) => Promise<Array<StorageKey>>>;
248
+ /**
249
+ * Returns a child storage entry at specific block's state.
250
+ *
251
+ * @rpcname: childstate_getStorage
252
+ * @param {PrefixedStorageKey} childStorageKey
253
+ * @param {StorageKey} key
254
+ * @param {BlockHash} at
255
+ **/
256
+ getStorage: GenericRpcCall<(childStorageKey: PrefixedStorageKey, key: StorageKey, at?: BlockHash) => Promise<Option<StorageData>>>;
257
+ /**
258
+ * Returns child storage entries for multiple keys at a specific block's state.
259
+ *
260
+ * @rpcname: childstate_getStorageEntries
261
+ * @param {PrefixedStorageKey} childStorageKey
262
+ * @param {Array<StorageKey>} keys
263
+ * @param {BlockHash} at
264
+ **/
265
+ getStorageEntries: GenericRpcCall<(childStorageKey: PrefixedStorageKey, keys: Array<StorageKey>, at?: BlockHash) => Promise<Array<Option<StorageData>>>>;
266
+ /**
267
+ * Returns the hash of a child storage entry at a block's state.
268
+ *
269
+ * @rpcname: childstate_getStorageHash
270
+ * @param {PrefixedStorageKey} childStorageKey
271
+ * @param {StorageKey} key
272
+ * @param {BlockHash} at
273
+ **/
274
+ getStorageHash: GenericRpcCall<(childStorageKey: PrefixedStorageKey, key: StorageKey, at?: BlockHash) => Promise<Option<Hash>>>;
275
+ /**
276
+ * Returns the size of a child storage entry at a block's state
277
+ *
278
+ * @rpcname: childstate_getStorageSize
279
+ * @param {PrefixedStorageKey} childStorageKey
280
+ * @param {StorageKey} key
281
+ * @param {BlockHash} at
282
+ **/
283
+ getStorageSize: GenericRpcCall<(childStorageKey: PrefixedStorageKey, key: StorageKey, at?: BlockHash) => Promise<Option<number>>>;
284
+ [method: string]: GenericRpcCall;
285
+ };
286
+ grandpa: {
287
+ /**
288
+ * Prove finality for the given block number, returning the Justification for the last block in the set.
289
+ *
290
+ * @rpcname: grandpa_proveFinality
291
+ * @param {BlockNumber} blockNumber
292
+ **/
293
+ proveFinality: GenericRpcCall<(blockNumber: BlockNumber) => Promise<Option<EncodedFinalityProofs>>>;
294
+ /**
295
+ * Returns the state of the current best round state as well as the ongoing background rounds
296
+ *
297
+ * @rpcname: grandpa_roundState
298
+ **/
299
+ roundState: GenericRpcCall<() => Promise<ReportedRoundStates>>;
300
+ /**
301
+ * Returns the block most recently finalized by Grandpa, alongside side its justification.
302
+ *
303
+ * @pubsub: grandpa_justifications, grandpa_subscribeJustifications, grandpa_unsubscribeJustifications
304
+ **/
305
+ subscribeJustifications: GenericRpcCall<(callback: Callback<JustificationNotification>) => Promise<Unsub>>;
306
+ [method: string]: GenericRpcCall;
307
+ };
308
+ mmr: {
309
+ /**
310
+ * Generate an MMR proof for the given `block_numbers`.
311
+ *
312
+ * This method calls into a runtime with MMR pallet included and attempts to generate
313
+ * an MMR proof for the set of blocks that have the given `block_numbers` with the MMR root at
314
+ * `best_known_block_number`. `best_known_block_number` must be larger than all the
315
+ * `block_numbers` for the function to succeed.
316
+ *
317
+ * Optionally via `at`, a block hash at which the runtime should be queried can be specified.
318
+ * Optionally via `best_known_block_number`, the proof can be generated using the MMR's state
319
+ * at a specific best block. Note that if `best_known_block_number` is provided, then also
320
+ * specifying the block hash via `at` isn't super-useful here, unless you're generating proof
321
+ * using non-finalized blocks where there are several competing forks. That's because MMR state
322
+ * will be fixed to the state with `best_known_block_number`, which already points to
323
+ * some historical block.
324
+ *
325
+ * Returns the (full) leaves and a proof for these leaves (compact encoding, i.e. hash of
326
+ * the leaves). Both parameters are SCALE-encoded.
327
+ * The order of entries in the `leaves` field of the returned struct
328
+ * is the same as the order of the entries in `block_numbers` supplied
329
+ *
330
+ * @rpcname: mmr_generateProof
331
+ * @param {Array<BlockNumber>} blockNumbers
332
+ * @param {BlockNumber} bestKnownBlockNumber
333
+ * @param {BlockHash} at
334
+ **/
335
+ generateProof: GenericRpcCall<(blockNumbers: Array<BlockNumber>, bestKnownBlockNumber?: BlockNumber, at?: BlockHash) => Promise<LeavesProof>>;
336
+ /**
337
+ * Get the MMR root hash for the current best block
338
+ *
339
+ * @rpcname: mmr_root
340
+ * @param {BlockHash} at
341
+ **/
342
+ root: GenericRpcCall<(at?: BlockHash) => Promise<Hash>>;
343
+ /**
344
+ * Verify an MMR `proof`.
345
+ *
346
+ * This method calls into a runtime with MMR pallet included and attempts to verify
347
+ * an MMR proof.
348
+ *
349
+ * Returns `true` if the proof is valid, else returns the verification error.
350
+ *
351
+ * @rpcname: mmr_verifyProof
352
+ * @param {LeavesProof} proof
353
+ **/
354
+ verifyProof: GenericRpcCall<(proof: LeavesProof) => Promise<boolean>>;
355
+ /**
356
+ * Verify an MMR `proof` statelessly given an `mmr_root`.
357
+ *
358
+ * This method calls into a runtime with MMR pallet included and attempts to verify
359
+ * an MMR proof against a provided MMR root.
360
+ *
361
+ * Returns `true` if the proof is valid, else returns the verification error.
362
+ *
363
+ * @rpcname: mmr_verifyProofStateless
364
+ * @param {Hash} mmrRoot
365
+ * @param {LeavesProof} proof
366
+ **/
367
+ verifyProofStateless: GenericRpcCall<(mmrRoot: Hash, proof: LeavesProof) => Promise<boolean>>;
368
+ [method: string]: GenericRpcCall;
369
+ };
370
+ offchain: {
371
+ /**
372
+ * Get offchain local storage under given key and prefix.
373
+ *
374
+ * @rpcname: offchain_localStorageGet
375
+ * @param {StorageKind} kind
376
+ * @param {Bytes} key
377
+ **/
378
+ localStorageGet: GenericRpcCall<(kind: StorageKind, key: Bytes) => Promise<Option<Bytes>>>;
379
+ /**
380
+ * Set offchain local storage under given key and prefix.
381
+ *
382
+ * @rpcname: offchain_localStorageSet
383
+ * @param {StorageKind} kind
384
+ * @param {Bytes} key
385
+ * @param {Bytes} value
386
+ **/
387
+ localStorageSet: GenericRpcCall<(kind: StorageKind, key: Bytes, value: Bytes) => Promise<void>>;
388
+ [method: string]: GenericRpcCall;
389
+ };
390
+ payment: {
391
+ /**
392
+ * Query the detailed fee of a given encoded extrinsic
393
+ *
394
+ * @rpcname: payment_queryFeeDetails
395
+ * @param {Bytes} extrinsic
396
+ * @param {BlockHash} at
397
+ **/
398
+ queryFeeDetails: GenericRpcCall<(extrinsic: Bytes, at?: BlockHash) => Promise<FeeDetails>>;
399
+ /**
400
+ * Retrieves the fee information for an encoded extrinsic
401
+ *
402
+ * @rpcname: payment_queryInfo
403
+ * @param {Bytes} extrinsic
404
+ * @param {BlockHash} at
405
+ **/
406
+ queryInfo: GenericRpcCall<(extrinsic: Bytes, at?: BlockHash) => Promise<RuntimeDispatchInfo>>;
407
+ [method: string]: GenericRpcCall;
408
+ };
409
+ rpc: {
410
+ /**
411
+ * Retrieves the list of RPC methods that are exposed by the node
412
+ *
413
+ * @rpcname: rpc_methods
414
+ **/
415
+ methods: GenericRpcCall<() => Promise<RpcMethods>>;
416
+ [method: string]: GenericRpcCall;
417
+ };
418
+ state: {
419
+ /**
420
+ * Call a method from the runtime API at a block's state.
421
+ *
422
+ * @rpcname: state_call
423
+ * @param {string} method
424
+ * @param {Bytes} data
425
+ * @param {BlockHash} at
426
+ **/
427
+ call: GenericRpcCall<(method: string, data: Bytes, at?: BlockHash) => Promise<Bytes>>;
428
+ /**
429
+ * Returns proof of storage for child key entries at a specific block state.
430
+ *
431
+ * @rpcname: state_getChildReadProof
432
+ * @param {PrefixedStorageKey} childStorageKey
433
+ * @param {Array<StorageKey>} keys
434
+ * @param {BlockHash} at
435
+ **/
436
+ getChildReadProof: GenericRpcCall<(childStorageKey: PrefixedStorageKey, keys: Array<StorageKey>, at?: BlockHash) => Promise<ReadProof>>;
437
+ /**
438
+ * Returns the keys with prefix, leave empty to get all the keys.
439
+ *
440
+ * @rpcname: state_getKeys
441
+ * @deprecated: Please use `getKeysPaged` with proper paging support
442
+ * @param {StorageKey} prefix
443
+ * @param {BlockHash} at
444
+ **/
445
+ getKeys: GenericRpcCall<(prefix: StorageKey, at?: BlockHash) => Promise<Array<StorageKey>>>;
446
+ /**
447
+ * 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.
448
+ *
449
+ * @rpcname: state_getKeysPaged
450
+ * @param {Option<StorageKey>} prefix
451
+ * @param {number} count
452
+ * @param {StorageKey} startKey
453
+ * @param {BlockHash} at
454
+ **/
455
+ getKeysPaged: GenericRpcCall<(prefix: Option<StorageKey>, count: number, startKey?: StorageKey, at?: BlockHash) => Promise<Array<StorageKey>>>;
456
+ /**
457
+ * Returns the runtime metadata
458
+ *
459
+ * @rpcname: state_getMetadata
460
+ * @param {BlockHash} at
461
+ **/
462
+ getMetadata: GenericRpcCall<(at?: BlockHash) => Promise<Metadata>>;
463
+ /**
464
+ * Returns the keys with prefix, leave empty to get all the keys
465
+ *
466
+ * @rpcname: state_getPairs
467
+ * @deprecated: Please use `getKeysPaged` with proper paging support
468
+ * @param {StorageKey} prefix
469
+ * @param {BlockHash} at
470
+ **/
471
+ getPairs: GenericRpcCall<(prefix: StorageKey, at?: BlockHash) => Promise<Array<[StorageKey, StorageData]>>>;
472
+ /**
473
+ * Returns proof of storage entries at a specific block's state.
474
+ *
475
+ * @rpcname: state_getReadProof
476
+ * @param {Array<StorageKey>} keys
477
+ * @param {BlockHash} at
478
+ **/
479
+ getReadProof: GenericRpcCall<(keys: Array<StorageKey>, at?: BlockHash) => Promise<ReadProof>>;
480
+ /**
481
+ * Get the runtime version.
482
+ *
483
+ * @rpcname: state_getRuntimeVersion
484
+ **/
485
+ getRuntimeVersion: GenericRpcCall<() => Promise<RuntimeVersion>>;
486
+ /**
487
+ * Returns a storage entry at a specific block's state.
488
+ *
489
+ * @rpcname: state_getStorage
490
+ * @param {StorageKey} key
491
+ * @param {BlockHash} at
492
+ **/
493
+ getStorage: GenericRpcCall<(key: StorageKey, at?: BlockHash) => Promise<Option<StorageData>>>;
494
+ /**
495
+ * Returns the hash of a storage entry at a block's state.
496
+ *
497
+ * @rpcname: state_getStorageHash
498
+ * @param {StorageKey} key
499
+ * @param {BlockHash} at
500
+ **/
501
+ getStorageHash: GenericRpcCall<(key: StorageKey, at?: BlockHash) => Promise<Option<Hash>>>;
502
+ /**
503
+ * Returns the hash of a storage entry at a block's state.
504
+ *
505
+ * @rpcname: state_getStorageSize
506
+ * @param {StorageKey} key
507
+ * @param {BlockHash} at
508
+ **/
509
+ getStorageSize: GenericRpcCall<(key: StorageKey, at?: BlockHash) => Promise<Option<bigint>>>;
510
+ /**
511
+ * 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.
512
+ *
513
+ * @rpcname: state_queryStorage
514
+ * @param {Array<StorageKey>} keys
515
+ * @param {Hash} fromBlock
516
+ * @param {BlockHash} at
517
+ **/
518
+ queryStorage: GenericRpcCall<(keys: Array<StorageKey>, fromBlock: Hash, at?: BlockHash) => Promise<Array<StorageChangeSet>>>;
519
+ /**
520
+ * 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.
521
+ *
522
+ * @rpcname: state_queryStorageAt
523
+ * @param {Array<StorageKey>} keys
524
+ * @param {BlockHash} at
525
+ **/
526
+ queryStorageAt: GenericRpcCall<(keys: Array<StorageKey>, at?: BlockHash) => Promise<Array<StorageChangeSet>>>;
527
+ /**
528
+ * New runtime version subscription
529
+ *
530
+ * @pubsub: state_runtimeVersion, state_subscribeRuntimeVersion, state_unsubscribeRuntimeVersion
531
+ **/
532
+ subscribeRuntimeVersion: GenericRpcCall<(callback: Callback<RuntimeVersion>) => Promise<Unsub>>;
533
+ /**
534
+ * Subscribes to storage changes for the provided keys
535
+ *
536
+ * @pubsub: state_storage, state_subscribeStorage, state_unsubscribeStorage
537
+ * @param {Array<StorageKey>} keys
538
+ **/
539
+ subscribeStorage: GenericRpcCall<(keys: Array<StorageKey>, callback: Callback<StorageChangeSet>) => Promise<Unsub>>;
540
+ /**
541
+ * 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.
542
+ *
543
+ * @rpcname: state_traceBlock
544
+ * @param {Hash} block
545
+ * @param {Option<string>} targets
546
+ * @param {Option<string>} storage_keys
547
+ * @param {Option<string>} methods
548
+ **/
549
+ traceBlock: GenericRpcCall<(block: Hash, targets: Option<string>, storage_keys: Option<string>, methods: Option<string>) => Promise<TraceBlockResponse>>;
550
+ /**
551
+ * Check current migration state. This call is performed locally without submitting any transactions. Thus executing this won't change any state. Nonetheless it is a VERY costy call that should be only exposed to trusted peers.
552
+ *
553
+ * @rpcname: state_trieMigrationStatus
554
+ * @param {BlockHash} at
555
+ **/
556
+ trieMigrationStatus: GenericRpcCall<(at?: BlockHash) => Promise<MigrationStatusResult>>;
557
+ [method: string]: GenericRpcCall;
558
+ };
559
+ syncstate: {
560
+ /**
561
+ * Returns the JSON-serialized chainspec running the node, with a sync state.
562
+ *
563
+ * @rpcname: sync_state_genSyncSpec
564
+ * @param {boolean} raw
565
+ **/
566
+ genSyncSpec: GenericRpcCall<(raw: boolean) => Promise<Record<string, any>>>;
567
+ [method: string]: GenericRpcCall;
568
+ };
569
+ system: {
570
+ /**
571
+ * Returns the next valid index (aka nonce) for given account.
572
+ *
573
+ * This method takes into consideration all pending transactions
574
+ * currently in the pool and if no transactions are found in the pool
575
+ * it fallbacks to query the index from the runtime (aka. state nonce).
576
+ *
577
+ * @rpcname: system_accountNextIndex
578
+ * @param {string} address
579
+ **/
580
+ accountNextIndex: GenericRpcCall<(address: string) => Promise<number>>;
581
+ /**
582
+ * Adds the supplied directives to the current log filter
583
+ *
584
+ * The syntax is identical to the CLI `<target>=<level>`:
585
+ *
586
+ * `sync=debug,state=trace`
587
+ *
588
+ * @rpcname: system_addLogFilter
589
+ * @param {string} directives
590
+ **/
591
+ addLogFilter: GenericRpcCall<(directives: string) => Promise<void>>;
592
+ /**
593
+ * Adds a reserved peer. Returns the empty string or an error. The string
594
+ * parameter should encode a `p2p` multiaddr.
595
+ *
596
+ * `/ip4/198.51.100.19/tcp/30333/p2p/QmSk5HQbn6LhUwDiNMseVUjuRYhEtYj4aUZ6WfWoGURpdV`
597
+ * is an example of a valid, passing multiaddr with PeerId attached.
598
+ *
599
+ * @rpcname: system_addReservedPeer
600
+ * @param {string} peer
601
+ **/
602
+ addReservedPeer: GenericRpcCall<(peer: string) => Promise<void>>;
603
+ /**
604
+ * Get the chain's name. Given as a string identifier.
605
+ *
606
+ * @rpcname: system_chain
607
+ **/
608
+ chain: GenericRpcCall<() => Promise<string>>;
609
+ /**
610
+ * Get the chain's type.
611
+ *
612
+ * @rpcname: system_chainType
613
+ **/
614
+ chainType: GenericRpcCall<() => Promise<ChainType>>;
615
+ /**
616
+ * Dry run an extrinsic at a given block. Return SCALE encoded ApplyExtrinsicResult.
617
+ *
618
+ * @rpcname: system_dryRun
619
+ * @param {Bytes} extrinsic
620
+ * @param {BlockHash} at
621
+ **/
622
+ dryRun: GenericRpcCall<(extrinsic: Bytes, at?: BlockHash) => Promise<ApplyExtrinsicResult>>;
623
+ /**
624
+ * Return health status of the node.
625
+ *
626
+ * Node is considered healthy if it is:
627
+ * - connected to some peers (unless running in dev mode)
628
+ * - not performing a major sync
629
+ *
630
+ * @rpcname: system_health
631
+ **/
632
+ health: GenericRpcCall<() => Promise<Health>>;
633
+ /**
634
+ * Returns the multi-addresses that the local node is listening on
635
+ *
636
+ * The addresses include a trailing `/p2p/` with the local PeerId, and are thus suitable to
637
+ * be passed to `addReservedPeer` or as a bootnode address for example.
638
+ *
639
+ * @rpcname: system_localListenAddresses
640
+ **/
641
+ localListenAddresses: GenericRpcCall<() => Promise<Array<string>>>;
642
+ /**
643
+ * Returns the base58-encoded PeerId of the node.
644
+ *
645
+ * @rpcname: system_localPeerId
646
+ **/
647
+ localPeerId: GenericRpcCall<() => Promise<string>>;
648
+ /**
649
+ * Get the node's implementation name. Plain old string.
650
+ *
651
+ * @rpcname: system_name
652
+ **/
653
+ name: GenericRpcCall<() => Promise<string>>;
654
+ /**
655
+ * Returns the roles the node is running as
656
+ *
657
+ * @rpcname: system_nodeRoles
658
+ **/
659
+ nodeRoles: GenericRpcCall<() => Promise<Array<NodeRole>>>;
660
+ /**
661
+ * Returns the currently connected peers
662
+ *
663
+ * @rpcname: system_peers
664
+ **/
665
+ peers: GenericRpcCall<() => Promise<Array<PeerInfo>>>;
666
+ /**
667
+ * Get a custom set of properties as a JSON object, defined in the chain spec.
668
+ *
669
+ * @rpcname: system_properties
670
+ **/
671
+ properties: GenericRpcCall<() => Promise<ChainProperties>>;
672
+ /**
673
+ * Remove a reserved peer. Returns the empty string or an error. The string
674
+ * should encode only the PeerId e.g. `QmSk5HQbn6LhUwDiNMseVUjuRYhEtYj4aUZ6WfWoGURpdV`.
675
+ *
676
+ * @rpcname: system_removeReservedPeer
677
+ * @param {string} peerId
678
+ **/
679
+ removeReservedPeer: GenericRpcCall<(peerId: string) => Promise<void>>;
680
+ /**
681
+ * Returns the list of reserved peers
682
+ *
683
+ * @rpcname: system_reservedPeers
684
+ **/
685
+ reservedPeers: GenericRpcCall<() => Promise<Array<string>>>;
686
+ /**
687
+ * Resets the log filter to Substrate defaults
688
+ *
689
+ * @rpcname: system_resetLogFilter
690
+ **/
691
+ resetLogFilter: GenericRpcCall<() => Promise<void>>;
692
+ /**
693
+ * Returns the state of the syncing of the node: starting block, current best block, highest known block.
694
+ *
695
+ * @rpcname: system_syncState
696
+ **/
697
+ syncState: GenericRpcCall<() => Promise<SyncState>>;
698
+ /**
699
+ * Returns current state of the network.
700
+ *
701
+ * **Warning**: This API is not stable. Please do not programmatically interpret its output,
702
+ * as its format might change at any time.
703
+ *
704
+ * @rpcname: system_unstable_networkState
705
+ **/
706
+ unstable_networkState: GenericRpcCall<() => Promise<NetworkState>>;
707
+ /**
708
+ * Get the node implementation's version. Should be a semver string.
709
+ *
710
+ * @rpcname: system_version
711
+ **/
712
+ version: GenericRpcCall<() => Promise<string>>;
713
+ [method: string]: GenericRpcCall;
714
+ };
715
+ transactionWatch: {
716
+ /**
717
+ * @rpcname: transactionWatch_unstable_submitAndWatch
718
+ **/
719
+ unstable_submitAndWatch: GenericRpcCall;
720
+ /**
721
+ * @rpcname: transactionWatch_unstable_unwatch
722
+ **/
723
+ unstable_unwatch: GenericRpcCall;
724
+ [method: string]: GenericRpcCall;
725
+ };
726
+ }