git.delta.rocks / unique-network / refs/commits / ced28e83586c

difftreelog

source

tests/src/interfaces/augment-api-rpc.ts42.3 KiBsourcehistory
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/rpc-core/types/jsonrpc';78import type { PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsPartPartType, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRpcCollection, UpDataStructsTokenChild, UpDataStructsTokenData } from './default';9import type { AugmentedRpc } from '@polkadot/rpc-core/types';10import type { Metadata, StorageKey } from '@polkadot/types';11import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from '@polkadot/types-codec';12import type { AnyNumber, Codec, ITuple } from '@polkadot/types-codec/types';13import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';14import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';15import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';16import type { BlockHash } from '@polkadot/types/interfaces/chain';17import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';18import type { AuthorityId } from '@polkadot/types/interfaces/consensus';19import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';20import type { BlockStats } from '@polkadot/types/interfaces/dev';21import type { CreatedBlock } from '@polkadot/types/interfaces/engine';22import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';23import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';24import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';25import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';26import type { StorageKind } from '@polkadot/types/interfaces/offchain';27import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';28import type { RpcMethods } from '@polkadot/types/interfaces/rpc';29import type { AccountId, AccountId32, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';30import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';31import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';32import type { IExtrinsic, Observable } from '@polkadot/types/types';3334export type __AugmentedRpc = AugmentedRpc<() => unknown>;3536declare module '@polkadot/rpc-core/types/jsonrpc' {37  interface RpcInterface {38    appPromotion: {39      /**40       * Returns the total amount of unstaked tokens41       **/42      pendingUnstake: AugmentedRpc<(staker?: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;43      /**44       * Returns the total amount of unstaked tokens per block45       **/46      pendingUnstakePerBlock: AugmentedRpc<(staker: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>>;47      /**48       * Returns the total amount of staked tokens49       **/50      totalStaked: AugmentedRpc<(staker?: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;51      /**52       * Returns the total amount of staked tokens per block when staked53       **/54      totalStakedPerBlock: AugmentedRpc<(staker: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>>;55    };56    author: {57      /**58       * Returns true if the keystore has private keys for the given public key and key type.59       **/60      hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;61      /**62       * Returns true if the keystore has private keys for the given session public keys.63       **/64      hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable<bool>>;65      /**66       * Insert a key into the keystore.67       **/68      insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;69      /**70       * Returns all pending extrinsics, potentially grouped by sender71       **/72      pendingExtrinsics: AugmentedRpc<() => Observable<Vec<Extrinsic>>>;73      /**74       * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting75       **/76      removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[]) => Observable<Vec<Hash>>>;77      /**78       * Generate new session keys and returns the corresponding public keys79       **/80      rotateKeys: AugmentedRpc<() => Observable<Bytes>>;81      /**82       * Submit and subscribe to watch an extrinsic until unsubscribed83       **/84      submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ExtrinsicStatus>>;85      /**86       * Submit a fully formatted extrinsic for block inclusion87       **/88      submitExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Hash>>;89    };90    babe: {91      /**92       * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore93       **/94      epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;95    };96    beefy: {97      /**98       * Returns hash of the latest BEEFY finalized block as seen by this client.99       **/100      getFinalizedHead: AugmentedRpc<() => Observable<H256>>;101      /**102       * Returns the block most recently finalized by BEEFY, alongside side its justification.103       **/104      subscribeJustifications: AugmentedRpc<() => Observable<BeefySignedCommitment>>;105    };106    chain: {107      /**108       * Get header and body of a relay chain block109       **/110      getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<SignedBlock>>;111      /**112       * Get the block hash for a specific block113       **/114      getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>>;115      /**116       * Get hash of the last finalized block in the canon chain117       **/118      getFinalizedHead: AugmentedRpc<() => Observable<BlockHash>>;119      /**120       * Retrieves the header for a specific block121       **/122      getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<Header>>;123      /**124       * Retrieves the newest header via subscription125       **/126      subscribeAllHeads: AugmentedRpc<() => Observable<Header>>;127      /**128       * Retrieves the best finalized header via subscription129       **/130      subscribeFinalizedHeads: AugmentedRpc<() => Observable<Header>>;131      /**132       * Retrieves the best header via subscription133       **/134      subscribeNewHeads: AugmentedRpc<() => Observable<Header>>;135    };136    childstate: {137      /**138       * Returns the keys with prefix from a child storage, leave empty to get all the keys139       **/140      getKeys: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;141      /**142       * Returns the keys with prefix from a child storage with pagination support143       **/144      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>>>;145      /**146       * Returns a child storage entry at a specific block state147       **/148      getStorage: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<StorageData>>>;149      /**150       * Returns child storage entries for multiple keys at a specific block state151       **/152      getStorageEntries: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | string | Uint8Array) => Observable<Vec<Option<StorageData>>>>;153      /**154       * Returns the hash of a child storage entry at a block state155       **/156      getStorageHash: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<Hash>>>;157      /**158       * Returns the size of a child storage entry at a block state159       **/160      getStorageSize: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;161    };162    contracts: {163      /**164       * Executes a call to a contract165       **/166      call: AugmentedRpc<(callRequest: ContractCallRequest | { origin?: any; dest?: any; value?: any; gasLimit?: any; storageDepositLimit?: any; inputData?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;167      /**168       * Returns the value under a specified storage key in a contract169       **/170      getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;171      /**172       * Instantiate a new contract173       **/174      instantiate: AugmentedRpc<(request: InstantiateRequest | { origin?: any; value?: any; gasLimit?: any; storageDepositLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;175      /**176       * Returns the projected time a given contract will be able to sustain paying its rent177       **/178      rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;179      /**180       * Upload new code without instantiating a contract from it181       **/182      uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | { origin?: any; code?: any; storageDepositLimit?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;183    };184    dev: {185      /**186       * Reexecute the specified `block_hash` and gather statistics while doing so187       **/188      getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>;189    };190    engine: {191      /**192       * Instructs the manual-seal authorship task to create a new block193       **/194      createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;195      /**196       * Instructs the manual-seal authorship task to finalize a block197       **/198      finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;199    };200    eth: {201      /**202       * Returns accounts list.203       **/204      accounts: AugmentedRpc<() => Observable<Vec<H160>>>;205      /**206       * Returns the blockNumber207       **/208      blockNumber: AugmentedRpc<() => Observable<U256>>;209      /**210       * Call contract, returning the output data.211       **/212      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>>;213      /**214       * Returns the chain ID used for transaction signing at the current best block. None is returned if not available.215       **/216      chainId: AugmentedRpc<() => Observable<U64>>;217      /**218       * Returns block author.219       **/220      coinbase: AugmentedRpc<() => Observable<H160>>;221      /**222       * Estimate gas needed for execution of given contract.223       **/224      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>>;225      /**226       * Returns fee history for given block count & reward percentiles227       **/228      feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> | (f64)[]) => Observable<EthFeeHistory>>;229      /**230       * Returns current gas price.231       **/232      gasPrice: AugmentedRpc<() => Observable<U256>>;233      /**234       * Returns balance of the given account.235       **/236      getBalance: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;237      /**238       * Returns block with given hash.239       **/240      getBlockByHash: AugmentedRpc<(hash: H256 | string | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;241      /**242       * Returns block with given number.243       **/244      getBlockByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;245      /**246       * Returns the number of transactions in a block with given hash.247       **/248      getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;249      /**250       * Returns the number of transactions in a block with given block number.251       **/252      getBlockTransactionCountByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;253      /**254       * Returns the code at given address at given time (block number).255       **/256      getCode: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;257      /**258       * Returns filter changes since last poll.259       **/260      getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>>;261      /**262       * Returns all logs matching given filter (in a range 'from' - 'to').263       **/264      getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>>;265      /**266       * Returns logs matching given filter object.267       **/268      getLogs: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<Vec<EthLog>>>;269      /**270       * Returns proof for account and storage.271       **/272      getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;273      /**274       * Returns content of the storage at given address.275       **/276      getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;277      /**278       * Returns transaction at given block hash and index.279       **/280      getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;281      /**282       * Returns transaction by given block number and index.283       **/284      getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;285      /**286       * Get transaction by its hash.287       **/288      getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;289      /**290       * Returns the number of transactions sent from given address at given time (block number).291       **/292      getTransactionCount: AugmentedRpc<(hash: H256 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;293      /**294       * Returns transaction receipt by transaction hash.295       **/296      getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;297      /**298       * Returns an uncles at given block and index.299       **/300      getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;301      /**302       * Returns an uncles at given block and index.303       **/304      getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;305      /**306       * Returns the number of uncles in a block with given hash.307       **/308      getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;309      /**310       * Returns the number of uncles in a block with given block number.311       **/312      getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;313      /**314       * Returns the hash of the current block, the seedHash, and the boundary condition to be met.315       **/316      getWork: AugmentedRpc<() => Observable<EthWork>>;317      /**318       * Returns the number of hashes per second that the node is mining with.319       **/320      hashrate: AugmentedRpc<() => Observable<U256>>;321      /**322       * Returns max priority fee per gas323       **/324      maxPriorityFeePerGas: AugmentedRpc<() => Observable<U256>>;325      /**326       * Returns true if client is actively mining new blocks.327       **/328      mining: AugmentedRpc<() => Observable<bool>>;329      /**330       * Returns id of new block filter.331       **/332      newBlockFilter: AugmentedRpc<() => Observable<U256>>;333      /**334       * Returns id of new filter.335       **/336      newFilter: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<U256>>;337      /**338       * Returns id of new block filter.339       **/340      newPendingTransactionFilter: AugmentedRpc<() => Observable<U256>>;341      /**342       * Returns protocol version encoded as a string (quotes are necessary).343       **/344      protocolVersion: AugmentedRpc<() => Observable<u64>>;345      /**346       * Sends signed transaction, returning its hash.347       **/348      sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable<H256>>;349      /**350       * Sends transaction; will block waiting for signer to return the transaction hash351       **/352      sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array) => Observable<H256>>;353      /**354       * Used for submitting mining hashrate.355       **/356      submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;357      /**358       * Used for submitting a proof-of-work solution.359       **/360      submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;361      /**362       * Subscribe to Eth subscription.363       **/364      subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array) => Observable<Null>>;365      /**366       * Returns an object with data about the sync status or false.367       **/368      syncing: AugmentedRpc<() => Observable<EthSyncStatus>>;369      /**370       * Uninstalls filter.371       **/372      uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<bool>>;373    };374    grandpa: {375      /**376       * Prove finality for the given block number, returning the Justification for the last block in the set.377       **/378      proveFinality: AugmentedRpc<(blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;379      /**380       * Returns the state of the current best round state as well as the ongoing background rounds381       **/382      roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;383      /**384       * Subscribes to grandpa justifications385       **/386      subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;387    };388    mmr: {389      /**390       * Generate MMR proof for the given leaf indices.391       **/392      generateBatchProof: AugmentedRpc<(leafIndices: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;393      /**394       * Generate MMR proof for given leaf index.395       **/396      generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;397    };398    net: {399      /**400       * Returns true if client is actively listening for network connections. Otherwise false.401       **/402      listening: AugmentedRpc<() => Observable<bool>>;403      /**404       * Returns number of peers connected to node.405       **/406      peerCount: AugmentedRpc<() => Observable<Text>>;407      /**408       * Returns protocol version.409       **/410      version: AugmentedRpc<() => Observable<Text>>;411    };412    offchain: {413      /**414       * Get offchain local storage under given key and prefix415       **/416      localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;417      /**418       * Set offchain local storage under given key and prefix419       **/420      localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;421    };422    payment: {423      /**424       * Query the detailed fee of a given encoded extrinsic425       **/426      queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;427      /**428       * Retrieves the fee information for an encoded extrinsic429       **/430      queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfo>>;431    };432    rmrk: {433      /**434       * Get tokens owned by an account in a collection435       **/436      accountTokens: AugmentedRpc<(accountId: AccountId32 | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;437      /**438       * Get base info439       **/440      base: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsBaseBaseInfo>>>;441      /**442       * Get all Base's parts443       **/444      baseParts: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPartPartType>>>;445      /**446       * Get collection by id447       **/448      collectionById: AugmentedRpc<(id: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsCollectionCollectionInfo>>>;449      /**450       * Get collection properties451       **/452      collectionProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPropertyPropertyInfo>>>;453      /**454       * Get the latest created collection id455       **/456      lastCollectionIdx: AugmentedRpc<(at?: Hash | string | Uint8Array) => Observable<u32>>;457      /**458       * Get NFT by collection id and NFT id459       **/460      nftById: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsNftNftInfo>>>;461      /**462       * Get NFT children463       **/464      nftChildren: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsNftNftChild>>>;465      /**466       * Get NFT properties467       **/468      nftProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPropertyPropertyInfo>>>;469      /**470       * Get NFT resource priorities471       **/472      nftResourcePriority: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u32>>>;473      /**474       * Get NFT resources475       **/476      nftResources: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsResourceResourceInfo>>>;477      /**478       * Get Base's theme names479       **/480      themeNames: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<Bytes>>>;481      /**482       * Get Theme's keys values483       **/484      themes: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, themeName: Text | string, keys: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsTheme>>>;485    };486    rpc: {487      /**488       * Retrieves the list of RPC methods that are exposed by the node489       **/490      methods: AugmentedRpc<() => Observable<RpcMethods>>;491    };492    state: {493      /**494       * Perform a call to a builtin on the chain495       **/496      call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;497      /**498       * Retrieves the keys with prefix of a specific child storage499       **/500      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>>>;501      /**502       * Returns proof of storage for child key entries at a specific block state.503       **/504      getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;505      /**506       * Retrieves the child storage for a key507       **/508      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>>;509      /**510       * Retrieves the child storage hash511       **/512      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>>;513      /**514       * Retrieves the child storage size515       **/516      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>>;517      /**518       * Retrieves the keys with a certain prefix519       **/520      getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;521      /**522       * Returns the keys with prefix with pagination support.523       **/524      getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;525      /**526       * Returns the runtime metadata527       **/528      getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;529      /**530       * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)531       **/532      getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;533      /**534       * Returns proof of storage entries at a specific block state535       **/536      getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;537      /**538       * Get the runtime version539       **/540      getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;541      /**542       * Retrieves the storage for a key543       **/544      getStorage: AugmentedRpc<<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>>;545      /**546       * Retrieves the storage hash547       **/548      getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;549      /**550       * Retrieves the storage size551       **/552      getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;553      /**554       * Query historical storage entries (by key) starting from a start block555       **/556      queryStorage: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>>;557      /**558       * Query storage entries (by key) starting at block hash given as the second parameter559       **/560      queryStorageAt: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>>;561      /**562       * Retrieves the runtime version via subscription563       **/564      subscribeRuntimeVersion: AugmentedRpc<() => Observable<RuntimeVersion>>;565      /**566       * Subscribes to storage changes for the provided keys567       **/568      subscribeStorage: AugmentedRpc<<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>>;569      /**570       * Provides a way to trace the re-execution of a single block571       **/572      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>>;573      /**574       * Check current migration state575       **/576      trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>;577    };578    syncstate: {579      /**580       * Returns the json-serialized chainspec running the node, with a sync state.581       **/582      genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;583    };584    system: {585      /**586       * Retrieves the next accountIndex as available on the node587       **/588      accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;589      /**590       * Adds the supplied directives to the current log filter591       **/592      addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;593      /**594       * Adds a reserved peer595       **/596      addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;597      /**598       * Retrieves the chain599       **/600      chain: AugmentedRpc<() => Observable<Text>>;601      /**602       * Retrieves the chain type603       **/604      chainType: AugmentedRpc<() => Observable<ChainType>>;605      /**606       * Dry run an extrinsic at a given block607       **/608      dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;609      /**610       * Return health status of the node611       **/612      health: AugmentedRpc<() => Observable<Health>>;613      /**614       * 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 example615       **/616      localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;617      /**618       * Returns the base58-encoded PeerId of the node619       **/620      localPeerId: AugmentedRpc<() => Observable<Text>>;621      /**622       * Retrieves the node name623       **/624      name: AugmentedRpc<() => Observable<Text>>;625      /**626       * Returns current state of the network627       **/628      networkState: AugmentedRpc<() => Observable<NetworkState>>;629      /**630       * Returns the roles the node is running as631       **/632      nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;633      /**634       * Returns the currently connected peers635       **/636      peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;637      /**638       * Get a custom set of properties as a JSON object, defined in the chain spec639       **/640      properties: AugmentedRpc<() => Observable<ChainProperties>>;641      /**642       * Remove a reserved peer643       **/644      removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;645      /**646       * Returns the list of reserved peers647       **/648      reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;649      /**650       * Resets the log filter to Substrate defaults651       **/652      resetLogFilter: AugmentedRpc<() => Observable<Null>>;653      /**654       * Returns the state of the syncing of the node655       **/656      syncState: AugmentedRpc<() => Observable<SyncState>>;657      /**658       * Retrieves the version of the node659       **/660      version: AugmentedRpc<() => Observable<Text>>;661    };662    unique: {663      /**664       * Get the amount of any user tokens owned by an account665       **/666      accountBalance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;667      /**668       * Get tokens owned by an account in a collection669       **/670      accountTokens: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;671      /**672       * Get the list of admin accounts of a collection673       **/674      adminlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;675      /**676       * Get the amount of currently possible sponsored transactions on a token for the fee to be taken off a sponsor677       **/678      allowance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, sender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;679      /**680       * Check if a user is allowed to operate within a collection681       **/682      allowed: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;683      /**684       * Get the list of accounts allowed to operate within a collection685       **/686      allowlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;687      /**688       * Get the amount of a specific token owned by an account689       **/690      balance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;691      /**692       * Get a collection by the specified ID693       **/694      collectionById: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsRpcCollection>>>;695      /**696       * Get collection properties, optionally limited to the provided keys697       **/698      collectionProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;699      /**700       * Get chain stats about collections701       **/702      collectionStats: AugmentedRpc<(at?: Hash | string | Uint8Array) => Observable<UpDataStructsCollectionStats>>;703      /**704       * Get tokens contained within a collection705       **/706      collectionTokens: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;707      /**708       * Get token constant metadata709       **/710      constMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;711      /**712       * Get effective collection limits713       **/714      effectiveCollectionLimits: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollectionLimits>>>;715      /**716       * Get the last token ID created in a collection717       **/718      lastTokenId: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;719      /**720       * Get the number of blocks until sponsoring a transaction is available721       **/722      nextSponsored: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;723      /**724       * Get property permissions, optionally limited to the provided keys725       **/726      propertyPermissions: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsPropertyKeyPermission>>>;727      /**728       * Get tokens nested directly into the token729       **/730      tokenChildren: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsTokenChild>>>;731      /**732       * Get token data, including properties, optionally limited to the provided keys, and total pieces for an RFT733       **/734      tokenData: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys?: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<UpDataStructsTokenData>>;735      /**736       * Check if the token exists737       **/738      tokenExists: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;739      /**740       * Get the token owner741       **/742      tokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;743      /**744       * Returns 10 tokens owners in no particular order745       **/746      tokenOwners: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;747      /**748       * Get token properties, optionally limited to the provided keys749       **/750      tokenProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys?: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;751      /**752       * Get the topmost token owner in the hierarchy of a possibly nested token753       **/754      topmostTokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;755      /**756       * Get the total amount of pieces of an RFT757       **/758      totalPieces: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u128>>>;759      /**760       * Get the amount of distinctive tokens present in a collection761       **/762      totalSupply: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;763      /**764       * Get token variable metadata765       **/766      variableMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;767    };768    web3: {769      /**770       * Returns current client version.771       **/772      clientVersion: AugmentedRpc<() => Observable<Text>>;773      /**774       * Returns sha3 of the given data775       **/776      sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;777    };778  } // RpcInterface779} // declare module