git.delta.rocks / unique-network / refs/commits / 012b227bf9e4

difftreelog

source

tests/src/interfaces/augment-api-rpc.ts31.6 KiBsourcehistory
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { NftDataStructsCollectionId, NftDataStructsTokenId, PalletCommonAccountBasicCrossAccountIdRepr } from './nft';5import type { Bytes, HashMap, Json, Metadata, Null, Option, StorageKey, Text, U256, U64, Vec, bool, u128, u32, u64 } from '@polkadot/types';6import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';7import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';8import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';9import type { BlockHash } from '@polkadot/types/interfaces/chain';10import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';11import type { AuthorityId } from '@polkadot/types/interfaces/consensus';12import type { ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';13import type { CreatedBlock } from '@polkadot/types/interfaces/engine';14import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';15import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';16import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';17import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';18import type { StorageKind } from '@polkadot/types/interfaces/offchain';19import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';20import type { RpcMethods } from '@polkadot/types/interfaces/rpc';21import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';22import type { ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';23import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';24import type { AnyNumber, Codec, IExtrinsic, Observable } from '@polkadot/types/types';2526declare module '@polkadot/rpc-core/types.jsonrpc' {27  export interface RpcInterface {28    author: {29      /**30       * Returns true if the keystore has private keys for the given public key and key type.31       **/32      hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;33      /**34       * Returns true if the keystore has private keys for the given session public keys.35       **/36      hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable<bool>>;37      /**38       * Insert a key into the keystore.39       **/40      insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;41      /**42       * Returns all pending extrinsics, potentially grouped by sender43       **/44      pendingExtrinsics: AugmentedRpc<() => Observable<Vec<Extrinsic>>>;45      /**46       * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting47       **/48      removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[]) => Observable<Vec<Hash>>>;49      /**50       * Generate new session keys and returns the corresponding public keys51       **/52      rotateKeys: AugmentedRpc<() => Observable<Bytes>>;53      /**54       * Submit and subscribe to watch an extrinsic until unsubscribed55       **/56      submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<ExtrinsicStatus>>;57      /**58       * Submit a fully formatted extrinsic for block inclusion59       **/60      submitExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<Hash>>;61    };62    babe: {63      /**64       * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore65       **/66      epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;67    };68    beefy: {69      /**70       * Returns the block most recently finalized by BEEFY, alongside side its justification.71       **/72      subscribeJustifications: AugmentedRpc<() => Observable<BeefySignedCommitment>>;73    };74    chain: {75      /**76       * Get header and body of a relay chain block77       **/78      getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<SignedBlock>>;79      /**80       * Get the block hash for a specific block81       **/82      getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>>;83      /**84       * Get hash of the last finalized block in the canon chain85       **/86      getFinalizedHead: AugmentedRpc<() => Observable<BlockHash>>;87      /**88       * Retrieves the header for a specific block89       **/90      getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<Header>>;91      /**92       * Retrieves the newest header via subscription93       **/94      subscribeAllHeads: AugmentedRpc<() => Observable<Header>>;95      /**96       * Retrieves the best finalized header via subscription97       **/98      subscribeFinalizedHeads: AugmentedRpc<() => Observable<Header>>;99      /**100       * Retrieves the best header via subscription101       **/102      subscribeNewHeads: AugmentedRpc<() => Observable<Header>>;103    };104    childstate: {105      /**106       * Returns the keys with prefix from a child storage, leave empty to get all the keys107       **/108      getKeys: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;109      /**110       * Returns the keys with prefix from a child storage with pagination support111       **/112      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>>>;113      /**114       * Returns a child storage entry at a specific block state115       **/116      getStorage: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<StorageData>>>;117      /**118       * Returns child storage entries for multiple keys at a specific block state119       **/120      getStorageEntries: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | string | Uint8Array) => Observable<Vec<Option<StorageData>>>>;121      /**122       * Returns the hash of a child storage entry at a block state123       **/124      getStorageHash: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<Hash>>>;125      /**126       * Returns the size of a child storage entry at a block state127       **/128      getStorageSize: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;129    };130    contracts: {131      /**132       * Executes a call to a contract133       **/134      call: AugmentedRpc<(callRequest: ContractCallRequest | { origin?: any; dest?: any; value?: any; gasLimit?: any; inputData?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;135      /**136       * Returns the value under a specified storage key in a contract137       **/138      getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;139      /**140       * Instantiate a new contract141       **/142      instantiate: AugmentedRpc<(request: InstantiateRequest | { origin?: any; endowment?: any; gasLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;143      /**144       * Returns the projected time a given contract will be able to sustain paying its rent145       **/146      rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;147    };148    engine: {149      /**150       * Instructs the manual-seal authorship task to create a new block151       **/152      createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;153      /**154       * Instructs the manual-seal authorship task to finalize a block155       **/156      finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;157    };158    eth: {159      /**160       * Returns accounts list.161       **/162      accounts: AugmentedRpc<() => Observable<Vec<H160>>>;163      /**164       * Returns the blockNumber165       **/166      blockNumber: AugmentedRpc<() => Observable<U256>>;167      /**168       * Call contract, returning the output data.169       **/170      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>>;171      /**172       * Returns the chain ID used for transaction signing at the current best block. None is returned if not available.173       **/174      chainId: AugmentedRpc<() => Observable<U64>>;175      /**176       * Returns block author.177       **/178      coinbase: AugmentedRpc<() => Observable<H160>>;179      /**180       * Estimate gas needed for execution of given contract.181       **/182      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>>;183      /**184       * Returns current gas price.185       **/186      gasPrice: AugmentedRpc<() => Observable<U256>>;187      /**188       * Returns balance of the given account.189       **/190      getBalance: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;191      /**192       * Returns block with given hash.193       **/194      getBlockByHash: AugmentedRpc<(hash: H256 | string | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;195      /**196       * Returns block with given number.197       **/198      getBlockByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;199      /**200       * Returns the number of transactions in a block with given hash.201       **/202      getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;203      /**204       * Returns the number of transactions in a block with given block number.205       **/206      getBlockTransactionCountByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;207      /**208       * Returns the code at given address at given time (block number).209       **/210      getCode: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;211      /**212       * Returns filter changes since last poll.213       **/214      getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>>;215      /**216       * Returns all logs matching given filter (in a range 'from' - 'to').217       **/218      getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>>;219      /**220       * Returns logs matching given filter object.221       **/222      getLogs: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<Vec<EthLog>>>;223      /**224       * Returns proof for account and storage.225       **/226      getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;227      /**228       * Returns content of the storage at given address.229       **/230      getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;231      /**232       * Returns transaction at given block hash and index.233       **/234      getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;235      /**236       * Returns transaction by given block number and index.237       **/238      getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;239      /**240       * Get transaction by its hash.241       **/242      getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;243      /**244       * Returns the number of transactions sent from given address at given time (block number).245       **/246      getTransactionCount: AugmentedRpc<(hash: H256 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;247      /**248       * Returns transaction receipt by transaction hash.249       **/250      getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;251      /**252       * Returns an uncles at given block and index.253       **/254      getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;255      /**256       * Returns an uncles at given block and index.257       **/258      getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;259      /**260       * Returns the number of uncles in a block with given hash.261       **/262      getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;263      /**264       * Returns the number of uncles in a block with given block number.265       **/266      getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;267      /**268       * Returns the hash of the current block, the seedHash, and the boundary condition to be met.269       **/270      getWork: AugmentedRpc<() => Observable<EthWork>>;271      /**272       * Returns the number of hashes per second that the node is mining with.273       **/274      hashrate: AugmentedRpc<() => Observable<U256>>;275      /**276       * Returns true if client is actively mining new blocks.277       **/278      mining: AugmentedRpc<() => Observable<bool>>;279      /**280       * Returns id of new block filter.281       **/282      newBlockFilter: AugmentedRpc<() => Observable<U256>>;283      /**284       * Returns id of new filter.285       **/286      newFilter: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<U256>>;287      /**288       * Returns id of new block filter.289       **/290      newPendingTransactionFilter: AugmentedRpc<() => Observable<U256>>;291      /**292       * Returns protocol version encoded as a string (quotes are necessary).293       **/294      protocolVersion: AugmentedRpc<() => Observable<u64>>;295      /**296       * Sends signed transaction, returning its hash.297       **/298      sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable<H256>>;299      /**300       * Sends transaction; will block waiting for signer to return the transaction hash301       **/302      sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array) => Observable<H256>>;303      /**304       * Used for submitting mining hashrate.305       **/306      submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;307      /**308       * Used for submitting a proof-of-work solution.309       **/310      submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;311      /**312       * Subscribe to Eth subscription.313       **/314      subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array) => Observable<Null>>;315      /**316       * Returns an object with data about the sync status or false.317       **/318      syncing: AugmentedRpc<() => Observable<EthSyncStatus>>;319      /**320       * Uninstalls filter.321       **/322      uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<bool>>;323    };324    grandpa: {325      /**326       * Prove finality for the range (begin; end] hash.327       **/328      proveFinality: AugmentedRpc<(begin: BlockHash | string | Uint8Array, end: BlockHash | string | Uint8Array, authoritiesSetId?: u64 | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;329      /**330       * Returns the state of the current best round state as well as the ongoing background rounds331       **/332      roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;333      /**334       * Subscribes to grandpa justifications335       **/336      subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;337    };338    mmr: {339      /**340       * Generate MMR proof for given leaf index.341       **/342      generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;343    };344    net: {345      /**346       * Returns true if client is actively listening for network connections. Otherwise false.347       **/348      listening: AugmentedRpc<() => Observable<bool>>;349      /**350       * Returns number of peers connected to node.351       **/352      peerCount: AugmentedRpc<() => Observable<Text>>;353      /**354       * Returns protocol version.355       **/356      version: AugmentedRpc<() => Observable<Text>>;357    };358    nft: {359      /**360       * Get amount of different user tokens361       **/362      accountBalance: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;363      /**364       * Get tokens owned by account365       **/366      accountTokens: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<NftDataStructsTokenId>>>;367      /**368       * Get admin list369       **/370      adminlist: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletCommonAccountBasicCrossAccountIdRepr>>>;371      /**372       * Get allowed amount373       **/374      allowance: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, sender: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, spender: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: NftDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;375      /**376       * Get allowlist377       **/378      allowlist: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletCommonAccountBasicCrossAccountIdRepr>>>;379      /**380       * Get amount of specific account token381       **/382      balance: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: NftDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;383      /**384       * Get tokens contained in collection385       **/386      collectionTokens: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<NftDataStructsTokenId>>>;387      /**388       * Get token constant metadata389       **/390      constMetadata: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, tokenId: NftDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;391      /**392       * Get last token id393       **/394      lastTokenId: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<NftDataStructsTokenId>>;395      /**396       * Check if token exists397       **/398      tokenExists: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, tokenId: NftDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;399      /**400       * Get token owner401       **/402      tokenOwner: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, tokenId: NftDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<PalletCommonAccountBasicCrossAccountIdRepr>>;403      /**404       * Get token variable metadata405       **/406      variableMetadata: AugmentedRpc<(collection: NftDataStructsCollectionId | AnyNumber | Uint8Array, tokenId: NftDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;407    };408    offchain: {409      /**410       * Get offchain local storage under given key and prefix411       **/412      localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;413      /**414       * Set offchain local storage under given key and prefix415       **/416      localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;417    };418    payment: {419      /**420       * Query the detailed fee of a given encoded extrinsic421       **/422      queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;423      /**424       * Retrieves the fee information for an encoded extrinsic425       **/426      queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfo>>;427    };428    rpc: {429      /**430       * Retrieves the list of RPC methods that are exposed by the node431       **/432      methods: AugmentedRpc<() => Observable<RpcMethods>>;433    };434    state: {435      /**436       * Perform a call to a builtin on the chain437       **/438      call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;439      /**440       * Retrieves the keys with prefix of a specific child storage441       **/442      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>>>;443      /**444       * Returns proof of storage for child key entries at a specific block state.445       **/446      getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;447      /**448       * Retrieves the child storage for a key449       **/450      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>>;451      /**452       * Retrieves the child storage hash453       **/454      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>>;455      /**456       * Retrieves the child storage size457       **/458      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>>;459      /**460       * Retrieves the keys with a certain prefix461       **/462      getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;463      /**464       * Returns the keys with prefix with pagination support.465       **/466      getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;467      /**468       * Returns the runtime metadata469       **/470      getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;471      /**472       * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)473       **/474      getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;475      /**476       * Returns proof of storage entries at a specific block state477       **/478      getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;479      /**480       * Get the runtime version481       **/482      getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;483      /**484       * Retrieves the storage for a key485       **/486      getStorage: AugmentedRpc<<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>>;487      /**488       * Retrieves the storage hash489       **/490      getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;491      /**492       * Retrieves the storage size493       **/494      getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;495      /**496       * Query historical storage entries (by key) starting from a start block497       **/498      queryStorage: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>>;499      /**500       * Query storage entries (by key) starting at block hash given as the second parameter501       **/502      queryStorageAt: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>>;503      /**504       * Retrieves the runtime version via subscription505       **/506      subscribeRuntimeVersion: AugmentedRpc<() => Observable<RuntimeVersion>>;507      /**508       * Subscribes to storage changes for the provided keys509       **/510      subscribeStorage: AugmentedRpc<<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>>;511      /**512       * Provides a way to trace the re-execution of a single block513       **/514      traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | object | string | Uint8Array, storageKeys: Option<Text> | null | object | string | Uint8Array) => Observable<TraceBlockResponse>>;515    };516    syncstate: {517      /**518       * Returns the json-serialized chainspec running the node, with a sync state.519       **/520      genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;521    };522    system: {523      /**524       * Retrieves the next accountIndex as available on the node525       **/526      accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;527      /**528       * Adds the supplied directives to the current log filter529       **/530      addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;531      /**532       * Adds a reserved peer533       **/534      addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;535      /**536       * Retrieves the chain537       **/538      chain: AugmentedRpc<() => Observable<Text>>;539      /**540       * Retrieves the chain type541       **/542      chainType: AugmentedRpc<() => Observable<ChainType>>;543      /**544       * Dry run an extrinsic at a given block545       **/546      dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;547      /**548       * Return health status of the node549       **/550      health: AugmentedRpc<() => Observable<Health>>;551      /**552       * 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 example553       **/554      localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;555      /**556       * Returns the base58-encoded PeerId of the node557       **/558      localPeerId: AugmentedRpc<() => Observable<Text>>;559      /**560       * Retrieves the node name561       **/562      name: AugmentedRpc<() => Observable<Text>>;563      /**564       * Returns current state of the network565       **/566      networkState: AugmentedRpc<() => Observable<NetworkState>>;567      /**568       * Returns the roles the node is running as569       **/570      nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;571      /**572       * Returns the currently connected peers573       **/574      peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;575      /**576       * Get a custom set of properties as a JSON object, defined in the chain spec577       **/578      properties: AugmentedRpc<() => Observable<ChainProperties>>;579      /**580       * Remove a reserved peer581       **/582      removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;583      /**584       * Returns the list of reserved peers585       **/586      reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;587      /**588       * Resets the log filter to Substrate defaults589       **/590      resetLogFilter: AugmentedRpc<() => Observable<Null>>;591      /**592       * Returns the state of the syncing of the node593       **/594      syncState: AugmentedRpc<() => Observable<SyncState>>;595      /**596       * Retrieves the version of the node597       **/598      version: AugmentedRpc<() => Observable<Text>>;599    };600    web3: {601      /**602       * Returns current client version.603       **/604      clientVersion: AugmentedRpc<() => Observable<Text>>;605      /**606       * Returns sha3 of the given data607       **/608      sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;609    };610  }611}