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

difftreelog

source

tests/src/interfaces/augment-api-rpc.ts32.3 KiBsourcehistory
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { PalletCommonAccountBasicCrossAccountIdRepr, UpDataStructsCollection, UpDataStructsCollectionId, UpDataStructsCollectionStats, UpDataStructsTokenId } from './unique';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    offchain: {359      /**360       * Get offchain local storage under given key and prefix361       **/362      localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;363      /**364       * Set offchain local storage under given key and prefix365       **/366      localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;367    };368    payment: {369      /**370       * Query the detailed fee of a given encoded extrinsic371       **/372      queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;373      /**374       * Retrieves the fee information for an encoded extrinsic375       **/376      queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfo>>;377    };378    rpc: {379      /**380       * Retrieves the list of RPC methods that are exposed by the node381       **/382      methods: AugmentedRpc<() => Observable<RpcMethods>>;383    };384    state: {385      /**386       * Perform a call to a builtin on the chain387       **/388      call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;389      /**390       * Retrieves the keys with prefix of a specific child storage391       **/392      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>>>;393      /**394       * Returns proof of storage for child key entries at a specific block state.395       **/396      getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;397      /**398       * Retrieves the child storage for a key399       **/400      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>>;401      /**402       * Retrieves the child storage hash403       **/404      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>>;405      /**406       * Retrieves the child storage size407       **/408      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>>;409      /**410       * Retrieves the keys with a certain prefix411       **/412      getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;413      /**414       * Returns the keys with prefix with pagination support.415       **/416      getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;417      /**418       * Returns the runtime metadata419       **/420      getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;421      /**422       * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)423       **/424      getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;425      /**426       * Returns proof of storage entries at a specific block state427       **/428      getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;429      /**430       * Get the runtime version431       **/432      getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;433      /**434       * Retrieves the storage for a key435       **/436      getStorage: AugmentedRpc<<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>>;437      /**438       * Retrieves the storage hash439       **/440      getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;441      /**442       * Retrieves the storage size443       **/444      getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;445      /**446       * Query historical storage entries (by key) starting from a start block447       **/448      queryStorage: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>>;449      /**450       * Query storage entries (by key) starting at block hash given as the second parameter451       **/452      queryStorageAt: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>>;453      /**454       * Retrieves the runtime version via subscription455       **/456      subscribeRuntimeVersion: AugmentedRpc<() => Observable<RuntimeVersion>>;457      /**458       * Subscribes to storage changes for the provided keys459       **/460      subscribeStorage: AugmentedRpc<<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>>;461      /**462       * Provides a way to trace the re-execution of a single block463       **/464      traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | object | string | Uint8Array, storageKeys: Option<Text> | null | object | string | Uint8Array) => Observable<TraceBlockResponse>>;465    };466    syncstate: {467      /**468       * Returns the json-serialized chainspec running the node, with a sync state.469       **/470      genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;471    };472    system: {473      /**474       * Retrieves the next accountIndex as available on the node475       **/476      accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;477      /**478       * Adds the supplied directives to the current log filter479       **/480      addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;481      /**482       * Adds a reserved peer483       **/484      addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;485      /**486       * Retrieves the chain487       **/488      chain: AugmentedRpc<() => Observable<Text>>;489      /**490       * Retrieves the chain type491       **/492      chainType: AugmentedRpc<() => Observable<ChainType>>;493      /**494       * Dry run an extrinsic at a given block495       **/496      dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;497      /**498       * Return health status of the node499       **/500      health: AugmentedRpc<() => Observable<Health>>;501      /**502       * 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 example503       **/504      localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;505      /**506       * Returns the base58-encoded PeerId of the node507       **/508      localPeerId: AugmentedRpc<() => Observable<Text>>;509      /**510       * Retrieves the node name511       **/512      name: AugmentedRpc<() => Observable<Text>>;513      /**514       * Returns current state of the network515       **/516      networkState: AugmentedRpc<() => Observable<NetworkState>>;517      /**518       * Returns the roles the node is running as519       **/520      nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;521      /**522       * Returns the currently connected peers523       **/524      peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;525      /**526       * Get a custom set of properties as a JSON object, defined in the chain spec527       **/528      properties: AugmentedRpc<() => Observable<ChainProperties>>;529      /**530       * Remove a reserved peer531       **/532      removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;533      /**534       * Returns the list of reserved peers535       **/536      reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;537      /**538       * Resets the log filter to Substrate defaults539       **/540      resetLogFilter: AugmentedRpc<() => Observable<Null>>;541      /**542       * Returns the state of the syncing of the node543       **/544      syncState: AugmentedRpc<() => Observable<SyncState>>;545      /**546       * Retrieves the version of the node547       **/548      version: AugmentedRpc<() => Observable<Text>>;549    };550    unique: {551      /**552       * Get amount of different user tokens553       **/554      accountBalance: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;555      /**556       * Get tokens owned by account557       **/558      accountTokens: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsTokenId>>>;559      /**560       * Get admin list561       **/562      adminlist: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletCommonAccountBasicCrossAccountIdRepr>>>;563      /**564       * Get allowed amount565       **/566      allowance: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, sender: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, spender: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: UpDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;567      /**568       * Check if user is allowed to use collection569       **/570      allowed: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;571      /**572       * Get allowlist573       **/574      allowlist: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletCommonAccountBasicCrossAccountIdRepr>>>;575      /**576       * Get amount of specific account token577       **/578      balance: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: UpDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;579      /**580       * Get collection by specified id581       **/582      collectionById: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollection>>>;583      /**584       * Get collection stats585       **/586      collectionStats: AugmentedRpc<(at?: Hash | string | Uint8Array) => Observable<UpDataStructsCollectionStats>>;587      /**588       * Get tokens contained in collection589       **/590      collectionTokens: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsTokenId>>>;591      /**592       * Get token constant metadata593       **/594      constMetadata: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, tokenId: UpDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;595      /**596       * Get last token id597       **/598      lastTokenId: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<UpDataStructsTokenId>>;599      /**600       * Check if token exists601       **/602      tokenExists: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, tokenId: UpDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;603      /**604       * Get token owner605       **/606      tokenOwner: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, tokenId: UpDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<PalletCommonAccountBasicCrossAccountIdRepr>>;607      /**608       * Get token variable metadata609       **/610      variableMetadata: AugmentedRpc<(collection: UpDataStructsCollectionId | AnyNumber | Uint8Array, tokenId: UpDataStructsTokenId | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;611    };612    web3: {613      /**614       * Returns current client version.615       **/616      clientVersion: AugmentedRpc<() => Observable<Text>>;617      /**618       * Returns sha3 of the given data619       **/620      sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;621    };622  }623}