@pezkuwi/rpc-augment 16.5.5

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.
@@ -0,0 +1,621 @@
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
3
+
4
+ // import type lookup before we augment - in some environments
5
+ // this is required to allow for ambient/previous definitions
6
+ import '@polkadot/rpc-core/types/jsonrpc';
7
+
8
+ import type { AugmentedRpc } from '@pezkuwi/rpc-core/types';
9
+ import type { Metadata, StorageKey } from '@pezkuwi/types';
10
+ import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u32, u64 } from '@pezkuwi/types-codec';
11
+ import type { AnyNumber, Codec } from '@pezkuwi/types-codec/types';
12
+ import type { ExtrinsicOrHash, ExtrinsicStatus } from '@pezkuwi/types/interfaces/author';
13
+ import type { EpochAuthorship } from '@pezkuwi/types/interfaces/babe';
14
+ import type { BeefyVersionedFinalityProof } from '@pezkuwi/types/interfaces/beefy';
15
+ import type { BlockHash } from '@pezkuwi/types/interfaces/chain';
16
+ import type { PrefixedStorageKey } from '@pezkuwi/types/interfaces/childstate';
17
+ import type { AuthorityId } from '@pezkuwi/types/interfaces/consensus';
18
+ import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequestV1 } from '@pezkuwi/types/interfaces/contracts';
19
+ import type { BlockStats } from '@pezkuwi/types/interfaces/dev';
20
+ import type { CreatedBlock } from '@pezkuwi/types/interfaces/engine';
21
+ import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@pezkuwi/types/interfaces/eth';
22
+ import type { Extrinsic } from '@pezkuwi/types/interfaces/extrinsics';
23
+ import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@pezkuwi/types/interfaces/grandpa';
24
+ import type { MmrHash, MmrLeafBatchProof } from '@pezkuwi/types/interfaces/mmr';
25
+ import type { StorageKind } from '@pezkuwi/types/interfaces/offchain';
26
+ import type { FeeDetails, RuntimeDispatchInfoV1 } from '@pezkuwi/types/interfaces/payment';
27
+ import type { RpcMethods } from '@pezkuwi/types/interfaces/rpc';
28
+ import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@pezkuwi/types/interfaces/runtime';
29
+ import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@pezkuwi/types/interfaces/state';
30
+ import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@pezkuwi/types/interfaces/system';
31
+ import type { IExtrinsic, Observable } from '@pezkuwi/types/types';
32
+
33
+ export type __AugmentedRpc = AugmentedRpc<() => unknown>;
34
+
35
+ declare module '@polkadot/rpc-core/types/jsonrpc' {
36
+ interface RpcInterface {
37
+ author: {
38
+ /**
39
+ * Returns true if the keystore has private keys for the given public key and key type.
40
+ **/
41
+ hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;
42
+ /**
43
+ * Returns true if the keystore has private keys for the given session public keys.
44
+ **/
45
+ hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable<bool>>;
46
+ /**
47
+ * Insert a key into the keystore.
48
+ **/
49
+ insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;
50
+ /**
51
+ * Returns all pending extrinsics, potentially grouped by sender
52
+ **/
53
+ pendingExtrinsics: AugmentedRpc<() => Observable<Vec<Extrinsic>>>;
54
+ /**
55
+ * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting
56
+ **/
57
+ removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[]) => Observable<Vec<Hash>>>;
58
+ /**
59
+ * Generate new session keys and returns the corresponding public keys
60
+ **/
61
+ rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
62
+ /**
63
+ * Submit and subscribe to watch an extrinsic until unsubscribed
64
+ **/
65
+ submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ExtrinsicStatus>>;
66
+ /**
67
+ * Submit a fully formatted extrinsic for block inclusion
68
+ **/
69
+ submitExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Hash>>;
70
+ };
71
+ babe: {
72
+ /**
73
+ * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore
74
+ **/
75
+ epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;
76
+ };
77
+ beefy: {
78
+ /**
79
+ * Returns hash of the latest BEEFY finalized block as seen by this client.
80
+ **/
81
+ getFinalizedHead: AugmentedRpc<() => Observable<H256>>;
82
+ /**
83
+ * Returns the block most recently finalized by BEEFY, alongside its justification.
84
+ **/
85
+ subscribeJustifications: AugmentedRpc<() => Observable<BeefyVersionedFinalityProof>>;
86
+ };
87
+ chain: {
88
+ /**
89
+ * Get header and body of a relay chain block
90
+ **/
91
+ getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<SignedBlock>>;
92
+ /**
93
+ * Get the block hash for a specific block
94
+ **/
95
+ getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>>;
96
+ /**
97
+ * Get hash of the last finalized block in the canon chain
98
+ **/
99
+ getFinalizedHead: AugmentedRpc<() => Observable<BlockHash>>;
100
+ /**
101
+ * Retrieves the header for a specific block
102
+ **/
103
+ getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<Header>>;
104
+ /**
105
+ * Retrieves the newest header via subscription
106
+ **/
107
+ subscribeAllHeads: AugmentedRpc<() => Observable<Header>>;
108
+ /**
109
+ * Retrieves the best finalized header via subscription
110
+ **/
111
+ subscribeFinalizedHeads: AugmentedRpc<() => Observable<Header>>;
112
+ /**
113
+ * Retrieves the best header via subscription
114
+ **/
115
+ subscribeNewHeads: AugmentedRpc<() => Observable<Header>>;
116
+ };
117
+ childstate: {
118
+ /**
119
+ * Returns the keys with prefix from a child storage, leave empty to get all the keys
120
+ **/
121
+ getKeys: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
122
+ /**
123
+ * Returns the keys with prefix from a child storage with pagination support
124
+ **/
125
+ getKeysPaged: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
126
+ /**
127
+ * Returns a child storage entry at a specific block state
128
+ **/
129
+ getStorage: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<StorageData>>>;
130
+ /**
131
+ * Returns child storage entries for multiple keys at a specific block state
132
+ **/
133
+ getStorageEntries: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | string | Uint8Array) => Observable<Vec<Option<StorageData>>>>;
134
+ /**
135
+ * Returns the hash of a child storage entry at a block state
136
+ **/
137
+ getStorageHash: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<Hash>>>;
138
+ /**
139
+ * Returns the size of a child storage entry at a block state
140
+ **/
141
+ getStorageSize: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;
142
+ };
143
+ contracts: {
144
+ /**
145
+ * @deprecated Use the runtime interface `api.call.contractsApi.call` instead
146
+ * Executes a call to a contract
147
+ **/
148
+ call: AugmentedRpc<(callRequest: ContractCallRequest | { origin?: any; dest?: any; value?: any; gasLimit?: any; storageDepositLimit?: any; inputData?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;
149
+ /**
150
+ * @deprecated Use the runtime interface `api.call.contractsApi.getStorage` instead
151
+ * Returns the value under a specified storage key in a contract
152
+ **/
153
+ getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;
154
+ /**
155
+ * @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead
156
+ * Instantiate a new contract
157
+ **/
158
+ instantiate: AugmentedRpc<(request: InstantiateRequestV1 | { origin?: any; value?: any; gasLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
159
+ /**
160
+ * @deprecated Not available in newer versions of the contracts interfaces
161
+ * Returns the projected time a given contract will be able to sustain paying its rent
162
+ **/
163
+ rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
164
+ /**
165
+ * @deprecated Use the runtime interface `api.call.contractsApi.uploadCode` instead
166
+ * Upload new code without instantiating a contract from it
167
+ **/
168
+ uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | { origin?: any; code?: any; storageDepositLimit?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;
169
+ };
170
+ dev: {
171
+ /**
172
+ * Reexecute the specified `block_hash` and gather statistics while doing so
173
+ **/
174
+ getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>;
175
+ };
176
+ engine: {
177
+ /**
178
+ * Instructs the manual-seal authorship task to create a new block
179
+ **/
180
+ createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;
181
+ /**
182
+ * Instructs the manual-seal authorship task to finalize a block
183
+ **/
184
+ finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;
185
+ };
186
+ eth: {
187
+ /**
188
+ * Returns accounts list.
189
+ **/
190
+ accounts: AugmentedRpc<() => Observable<Vec<H160>>>;
191
+ /**
192
+ * Returns the blockNumber
193
+ **/
194
+ blockNumber: AugmentedRpc<() => Observable<U256>>;
195
+ /**
196
+ * Call contract, returning the output data.
197
+ **/
198
+ call: AugmentedRpc<(request: EthCallRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
199
+ /**
200
+ * Returns the chain ID used for transaction signing at the current best block. None is returned if not available.
201
+ **/
202
+ chainId: AugmentedRpc<() => Observable<U64>>;
203
+ /**
204
+ * Returns block author.
205
+ **/
206
+ coinbase: AugmentedRpc<() => Observable<H160>>;
207
+ /**
208
+ * Estimate gas needed for execution of given contract.
209
+ **/
210
+ estimateGas: AugmentedRpc<(request: EthCallRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
211
+ /**
212
+ * Returns fee history for given block count & reward percentiles
213
+ **/
214
+ feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> | (f64)[]) => Observable<EthFeeHistory>>;
215
+ /**
216
+ * Returns current gas price.
217
+ **/
218
+ gasPrice: AugmentedRpc<() => Observable<U256>>;
219
+ /**
220
+ * Returns balance of the given account.
221
+ **/
222
+ getBalance: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
223
+ /**
224
+ * Returns block with given hash.
225
+ **/
226
+ getBlockByHash: AugmentedRpc<(hash: H256 | string | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
227
+ /**
228
+ * Returns block with given number.
229
+ **/
230
+ getBlockByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
231
+ /**
232
+ * Returns the number of transactions in a block with given hash.
233
+ **/
234
+ getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
235
+ /**
236
+ * Returns the number of transactions in a block with given block number.
237
+ **/
238
+ getBlockTransactionCountByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
239
+ /**
240
+ * Returns the code at given address at given time (block number).
241
+ **/
242
+ getCode: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
243
+ /**
244
+ * Returns filter changes since last poll.
245
+ **/
246
+ getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>>;
247
+ /**
248
+ * Returns all logs matching given filter (in a range 'from' - 'to').
249
+ **/
250
+ getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>>;
251
+ /**
252
+ * Returns logs matching given filter object.
253
+ **/
254
+ getLogs: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<Vec<EthLog>>>;
255
+ /**
256
+ * Returns proof for account and storage.
257
+ **/
258
+ getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;
259
+ /**
260
+ * Returns content of the storage at given address.
261
+ **/
262
+ getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;
263
+ /**
264
+ * Returns transaction at given block hash and index.
265
+ **/
266
+ getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
267
+ /**
268
+ * Returns transaction by given block number and index.
269
+ **/
270
+ getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
271
+ /**
272
+ * Get transaction by its hash.
273
+ **/
274
+ getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;
275
+ /**
276
+ * Returns the number of transactions sent from given address at given time (block number).
277
+ **/
278
+ getTransactionCount: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
279
+ /**
280
+ * Returns transaction receipt by transaction hash.
281
+ **/
282
+ getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;
283
+ /**
284
+ * Returns an uncles at given block and index.
285
+ **/
286
+ getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
287
+ /**
288
+ * Returns an uncles at given block and index.
289
+ **/
290
+ getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
291
+ /**
292
+ * Returns the number of uncles in a block with given hash.
293
+ **/
294
+ getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
295
+ /**
296
+ * Returns the number of uncles in a block with given block number.
297
+ **/
298
+ getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
299
+ /**
300
+ * Returns the hash of the current block, the seedHash, and the boundary condition to be met.
301
+ **/
302
+ getWork: AugmentedRpc<() => Observable<EthWork>>;
303
+ /**
304
+ * Returns the number of hashes per second that the node is mining with.
305
+ **/
306
+ hashrate: AugmentedRpc<() => Observable<U256>>;
307
+ /**
308
+ * Returns max priority fee per gas
309
+ **/
310
+ maxPriorityFeePerGas: AugmentedRpc<() => Observable<U256>>;
311
+ /**
312
+ * Returns true if client is actively mining new blocks.
313
+ **/
314
+ mining: AugmentedRpc<() => Observable<bool>>;
315
+ /**
316
+ * Returns id of new block filter.
317
+ **/
318
+ newBlockFilter: AugmentedRpc<() => Observable<U256>>;
319
+ /**
320
+ * Returns id of new filter.
321
+ **/
322
+ newFilter: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<U256>>;
323
+ /**
324
+ * Returns id of new block filter.
325
+ **/
326
+ newPendingTransactionFilter: AugmentedRpc<() => Observable<U256>>;
327
+ /**
328
+ * Returns protocol version encoded as a string (quotes are necessary).
329
+ **/
330
+ protocolVersion: AugmentedRpc<() => Observable<u64>>;
331
+ /**
332
+ * Sends signed transaction, returning its hash.
333
+ **/
334
+ sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable<H256>>;
335
+ /**
336
+ * Sends transaction; will block waiting for signer to return the transaction hash
337
+ **/
338
+ sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array) => Observable<H256>>;
339
+ /**
340
+ * Used for submitting mining hashrate.
341
+ **/
342
+ submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;
343
+ /**
344
+ * Used for submitting a proof-of-work solution.
345
+ **/
346
+ submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;
347
+ /**
348
+ * Subscribe to Eth subscription.
349
+ **/
350
+ subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array) => Observable<Null>>;
351
+ /**
352
+ * Returns an object with data about the sync status or false.
353
+ **/
354
+ syncing: AugmentedRpc<() => Observable<EthSyncStatus>>;
355
+ /**
356
+ * Uninstalls filter.
357
+ **/
358
+ uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<bool>>;
359
+ };
360
+ grandpa: {
361
+ /**
362
+ * Prove finality for the given block number, returning the Justification for the last block in the set.
363
+ **/
364
+ proveFinality: AugmentedRpc<(blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;
365
+ /**
366
+ * Returns the state of the current best round state as well as the ongoing background rounds
367
+ **/
368
+ roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;
369
+ /**
370
+ * Subscribes to grandpa justifications
371
+ **/
372
+ subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
373
+ };
374
+ mmr: {
375
+ /**
376
+ * Generate MMR proof for the given block numbers.
377
+ **/
378
+ generateProof: AugmentedRpc<(blockNumbers: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;
379
+ /**
380
+ * Get the MMR root hash for the current best block.
381
+ **/
382
+ root: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MmrHash>>;
383
+ /**
384
+ * Verify an MMR proof
385
+ **/
386
+ verifyProof: AugmentedRpc<(proof: MmrLeafBatchProof | { blockHash?: any; leaves?: any; proof?: any } | string | Uint8Array) => Observable<bool>>;
387
+ /**
388
+ * Verify an MMR proof statelessly given an mmr_root
389
+ **/
390
+ verifyProofStateless: AugmentedRpc<(root: MmrHash | string | Uint8Array, proof: MmrLeafBatchProof | { blockHash?: any; leaves?: any; proof?: any } | string | Uint8Array) => Observable<bool>>;
391
+ };
392
+ net: {
393
+ /**
394
+ * Returns true if client is actively listening for network connections. Otherwise false.
395
+ **/
396
+ listening: AugmentedRpc<() => Observable<bool>>;
397
+ /**
398
+ * Returns number of peers connected to node.
399
+ **/
400
+ peerCount: AugmentedRpc<() => Observable<Text>>;
401
+ /**
402
+ * Returns protocol version.
403
+ **/
404
+ version: AugmentedRpc<() => Observable<Text>>;
405
+ };
406
+ offchain: {
407
+ /**
408
+ * Clear offchain local storage under given key and prefix
409
+ **/
410
+ localStorageClear: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Null>>;
411
+ /**
412
+ * Get offchain local storage under given key and prefix
413
+ **/
414
+ localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
415
+ /**
416
+ * Set offchain local storage under given key and prefix
417
+ **/
418
+ localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;
419
+ };
420
+ payment: {
421
+ /**
422
+ * @deprecated Use `api.call.transactionPaymentApi.queryFeeDetails` instead
423
+ * Query the detailed fee of a given encoded extrinsic
424
+ **/
425
+ queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;
426
+ /**
427
+ * @deprecated Use `api.call.transactionPaymentApi.queryInfo` instead
428
+ * Retrieves the fee information for an encoded extrinsic
429
+ **/
430
+ queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfoV1>>;
431
+ };
432
+ rpc: {
433
+ /**
434
+ * Retrieves the list of RPC methods that are exposed by the node
435
+ **/
436
+ methods: AugmentedRpc<() => Observable<RpcMethods>>;
437
+ };
438
+ state: {
439
+ /**
440
+ * Perform a call to a builtin on the chain
441
+ **/
442
+ call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;
443
+ /**
444
+ * Retrieves the keys with prefix of a specific child storage
445
+ **/
446
+ getChildKeys: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
447
+ /**
448
+ * Returns proof of storage for child key entries at a specific block state.
449
+ **/
450
+ getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
451
+ /**
452
+ * Retrieves the child storage for a key
453
+ **/
454
+ getChildStorage: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<StorageData>>;
455
+ /**
456
+ * Retrieves the child storage hash
457
+ **/
458
+ getChildStorageHash: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
459
+ /**
460
+ * Retrieves the child storage size
461
+ **/
462
+ getChildStorageSize: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
463
+ /**
464
+ * @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
465
+ * Retrieves the keys with a certain prefix
466
+ **/
467
+ getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
468
+ /**
469
+ * Returns the keys with prefix with pagination support.
470
+ **/
471
+ getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
472
+ /**
473
+ * Returns the runtime metadata
474
+ **/
475
+ getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;
476
+ /**
477
+ * @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
478
+ * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)
479
+ **/
480
+ getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;
481
+ /**
482
+ * Returns proof of storage entries at a specific block state
483
+ **/
484
+ getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
485
+ /**
486
+ * Get the runtime version
487
+ **/
488
+ getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;
489
+ /**
490
+ * Retrieves the storage for a key
491
+ **/
492
+ getStorage: AugmentedRpc<<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>>;
493
+ /**
494
+ * Retrieves the storage hash
495
+ **/
496
+ getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
497
+ /**
498
+ * Retrieves the storage size
499
+ **/
500
+ getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
501
+ /**
502
+ * Query historical storage entries (by key) starting from a start block
503
+ **/
504
+ queryStorage: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>>;
505
+ /**
506
+ * Query storage entries (by key) starting at block hash given as the second parameter
507
+ **/
508
+ queryStorageAt: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>>;
509
+ /**
510
+ * Retrieves the runtime version via subscription
511
+ **/
512
+ subscribeRuntimeVersion: AugmentedRpc<() => Observable<RuntimeVersion>>;
513
+ /**
514
+ * Subscribes to storage changes for the provided keys
515
+ **/
516
+ subscribeStorage: AugmentedRpc<<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>>;
517
+ /**
518
+ * Provides a way to trace the re-execution of a single block
519
+ **/
520
+ traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | Uint8Array | Text | string, storageKeys: Option<Text> | null | Uint8Array | Text | string, methods: Option<Text> | null | Uint8Array | Text | string) => Observable<TraceBlockResponse>>;
521
+ /**
522
+ * Check current migration state
523
+ **/
524
+ trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>;
525
+ };
526
+ syncstate: {
527
+ /**
528
+ * Returns the json-serialized chainspec running the node, with a sync state.
529
+ **/
530
+ genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;
531
+ };
532
+ system: {
533
+ /**
534
+ * Retrieves the next accountIndex as available on the node
535
+ **/
536
+ accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;
537
+ /**
538
+ * Adds the supplied directives to the current log filter
539
+ **/
540
+ addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;
541
+ /**
542
+ * Adds a reserved peer
543
+ **/
544
+ addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;
545
+ /**
546
+ * Retrieves the chain
547
+ **/
548
+ chain: AugmentedRpc<() => Observable<Text>>;
549
+ /**
550
+ * Retrieves the chain type
551
+ **/
552
+ chainType: AugmentedRpc<() => Observable<ChainType>>;
553
+ /**
554
+ * Dry run an extrinsic at a given block
555
+ **/
556
+ dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
557
+ /**
558
+ * Return health status of the node
559
+ **/
560
+ health: AugmentedRpc<() => Observable<Health>>;
561
+ /**
562
+ * The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example
563
+ **/
564
+ localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;
565
+ /**
566
+ * Returns the base58-encoded PeerId of the node
567
+ **/
568
+ localPeerId: AugmentedRpc<() => Observable<Text>>;
569
+ /**
570
+ * Retrieves the node name
571
+ **/
572
+ name: AugmentedRpc<() => Observable<Text>>;
573
+ /**
574
+ * Returns current state of the network
575
+ **/
576
+ networkState: AugmentedRpc<() => Observable<NetworkState>>;
577
+ /**
578
+ * Returns the roles the node is running as
579
+ **/
580
+ nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;
581
+ /**
582
+ * Returns the currently connected peers
583
+ **/
584
+ peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;
585
+ /**
586
+ * Get a custom set of properties as a JSON object, defined in the chain spec
587
+ **/
588
+ properties: AugmentedRpc<() => Observable<ChainProperties>>;
589
+ /**
590
+ * Remove a reserved peer
591
+ **/
592
+ removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;
593
+ /**
594
+ * Returns the list of reserved peers
595
+ **/
596
+ reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;
597
+ /**
598
+ * Resets the log filter to Substrate defaults
599
+ **/
600
+ resetLogFilter: AugmentedRpc<() => Observable<Null>>;
601
+ /**
602
+ * Returns the state of the syncing of the node
603
+ **/
604
+ syncState: AugmentedRpc<() => Observable<SyncState>>;
605
+ /**
606
+ * Retrieves the version of the node
607
+ **/
608
+ version: AugmentedRpc<() => Observable<Text>>;
609
+ };
610
+ web3: {
611
+ /**
612
+ * Returns current client version.
613
+ **/
614
+ clientVersion: AugmentedRpc<() => Observable<Text>>;
615
+ /**
616
+ * Returns sha3 of the given data
617
+ **/
618
+ sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;
619
+ };
620
+ } // RpcInterface
621
+ } // declare module
package/src/bundle.ts ADDED
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2025 @polkadot/rpc-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import './augment/index.js';
5
+
6
+ export { packageInfo } from './packageInfo.js';
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2025 @polkadot/rpc-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import './packageDetect.js';
5
+
6
+ export * from './bundle.js';
package/src/mod.ts ADDED
@@ -0,0 +1,4 @@
1
+ // Copyright 2017-2025 @polkadot/rpc-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export * from './index.js';
@@ -0,0 +1,13 @@
1
+ // Copyright 2017-2025 @polkadot/rpc-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ // Do not edit, auto-generated by @polkadot/dev
5
+ // (packageInfo imports will be kept as-is, user-editable)
6
+
7
+ import { packageInfo as coreInfo } from '@pezkuwi/rpc-core/packageInfo';
8
+ import { packageInfo as typesInfo } from '@pezkuwi/types/packageInfo';
9
+ import { detectPackage } from '@pezkuwi/util';
10
+
11
+ import { packageInfo } from './packageInfo.js';
12
+
13
+ detectPackage(packageInfo, null, [coreInfo, typesInfo]);
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2025 @polkadot/rpc-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ // Do not edit, auto-generated by @polkadot/dev
5
+
6
+ export const packageInfo = { name: '@pezkuwi/rpc-augment', path: 'auto', type: 'auto', version: '16.5.5' };