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

difftreelog

source

tests/src/interfaces/augment-api-rpc.ts43.8 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, UpPovEstimateRpcPovInfo } 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, InstantiateRequestV1 } 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, RuntimeDispatchInfoV1 } 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       * @deprecated Use the runtime interface `api.call.contractsApi.call` instead165       * Executes a call to a contract166       **/167      call: AugmentedRpc<(callRequest: ContractCallRequest | { origin?: any; dest?: any; value?: any; gasLimit?: any; storageDepositLimit?: any; inputData?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;168      /**169       * @deprecated Use the runtime interface `api.call.contractsApi.getStorage` instead170       * Returns the value under a specified storage key in a contract171       **/172      getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;173      /**174       * @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead175       * Instantiate a new contract176       **/177      instantiate: AugmentedRpc<(request: InstantiateRequestV1 | { origin?: any; value?: any; gasLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;178      /**179       * @deprecated Not available in newer versions of the contracts interfaces180       * Returns the projected time a given contract will be able to sustain paying its rent181       **/182      rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;183      /**184       * @deprecated Use the runtime interface `api.call.contractsApi.uploadCode` instead185       * Upload new code without instantiating a contract from it186       **/187      uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | { origin?: any; code?: any; storageDepositLimit?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;188    };189    dev: {190      /**191       * Reexecute the specified `block_hash` and gather statistics while doing so192       **/193      getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>;194    };195    engine: {196      /**197       * Instructs the manual-seal authorship task to create a new block198       **/199      createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;200      /**201       * Instructs the manual-seal authorship task to finalize a block202       **/203      finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;204    };205    eth: {206      /**207       * Returns accounts list.208       **/209      accounts: AugmentedRpc<() => Observable<Vec<H160>>>;210      /**211       * Returns the blockNumber212       **/213      blockNumber: AugmentedRpc<() => Observable<U256>>;214      /**215       * Call contract, returning the output data.216       **/217      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>>;218      /**219       * Returns the chain ID used for transaction signing at the current best block. None is returned if not available.220       **/221      chainId: AugmentedRpc<() => Observable<U64>>;222      /**223       * Returns block author.224       **/225      coinbase: AugmentedRpc<() => Observable<H160>>;226      /**227       * Estimate gas needed for execution of given contract.228       **/229      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>>;230      /**231       * Returns fee history for given block count & reward percentiles232       **/233      feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> | (f64)[]) => Observable<EthFeeHistory>>;234      /**235       * Returns current gas price.236       **/237      gasPrice: AugmentedRpc<() => Observable<U256>>;238      /**239       * Returns balance of the given account.240       **/241      getBalance: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;242      /**243       * Returns block with given hash.244       **/245      getBlockByHash: AugmentedRpc<(hash: H256 | string | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;246      /**247       * Returns block with given number.248       **/249      getBlockByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;250      /**251       * Returns the number of transactions in a block with given hash.252       **/253      getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;254      /**255       * Returns the number of transactions in a block with given block number.256       **/257      getBlockTransactionCountByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;258      /**259       * Returns the code at given address at given time (block number).260       **/261      getCode: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;262      /**263       * Returns filter changes since last poll.264       **/265      getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>>;266      /**267       * Returns all logs matching given filter (in a range 'from' - 'to').268       **/269      getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>>;270      /**271       * Returns logs matching given filter object.272       **/273      getLogs: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<Vec<EthLog>>>;274      /**275       * Returns proof for account and storage.276       **/277      getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;278      /**279       * Returns content of the storage at given address.280       **/281      getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;282      /**283       * Returns transaction at given block hash and index.284       **/285      getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;286      /**287       * Returns transaction by given block number and index.288       **/289      getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;290      /**291       * Get transaction by its hash.292       **/293      getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;294      /**295       * Returns the number of transactions sent from given address at given time (block number).296       **/297      getTransactionCount: AugmentedRpc<(hash: H256 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;298      /**299       * Returns transaction receipt by transaction hash.300       **/301      getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;302      /**303       * Returns an uncles at given block and index.304       **/305      getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;306      /**307       * Returns an uncles at given block and index.308       **/309      getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;310      /**311       * Returns the number of uncles in a block with given hash.312       **/313      getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;314      /**315       * Returns the number of uncles in a block with given block number.316       **/317      getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;318      /**319       * Returns the hash of the current block, the seedHash, and the boundary condition to be met.320       **/321      getWork: AugmentedRpc<() => Observable<EthWork>>;322      /**323       * Returns the number of hashes per second that the node is mining with.324       **/325      hashrate: AugmentedRpc<() => Observable<U256>>;326      /**327       * Returns max priority fee per gas328       **/329      maxPriorityFeePerGas: AugmentedRpc<() => Observable<U256>>;330      /**331       * Returns true if client is actively mining new blocks.332       **/333      mining: AugmentedRpc<() => Observable<bool>>;334      /**335       * Returns id of new block filter.336       **/337      newBlockFilter: AugmentedRpc<() => Observable<U256>>;338      /**339       * Returns id of new filter.340       **/341      newFilter: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<U256>>;342      /**343       * Returns id of new block filter.344       **/345      newPendingTransactionFilter: AugmentedRpc<() => Observable<U256>>;346      /**347       * Returns protocol version encoded as a string (quotes are necessary).348       **/349      protocolVersion: AugmentedRpc<() => Observable<u64>>;350      /**351       * Sends signed transaction, returning its hash.352       **/353      sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable<H256>>;354      /**355       * Sends transaction; will block waiting for signer to return the transaction hash356       **/357      sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array) => Observable<H256>>;358      /**359       * Used for submitting mining hashrate.360       **/361      submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;362      /**363       * Used for submitting a proof-of-work solution.364       **/365      submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;366      /**367       * Subscribe to Eth subscription.368       **/369      subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array) => Observable<Null>>;370      /**371       * Returns an object with data about the sync status or false.372       **/373      syncing: AugmentedRpc<() => Observable<EthSyncStatus>>;374      /**375       * Uninstalls filter.376       **/377      uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<bool>>;378    };379    grandpa: {380      /**381       * Prove finality for the given block number, returning the Justification for the last block in the set.382       **/383      proveFinality: AugmentedRpc<(blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;384      /**385       * Returns the state of the current best round state as well as the ongoing background rounds386       **/387      roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;388      /**389       * Subscribes to grandpa justifications390       **/391      subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;392    };393    mmr: {394      /**395       * Generate MMR proof for the given leaf indices.396       **/397      generateBatchProof: AugmentedRpc<(leafIndices: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;398      /**399       * Generate MMR proof for given leaf index.400       **/401      generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;402    };403    net: {404      /**405       * Returns true if client is actively listening for network connections. Otherwise false.406       **/407      listening: AugmentedRpc<() => Observable<bool>>;408      /**409       * Returns number of peers connected to node.410       **/411      peerCount: AugmentedRpc<() => Observable<Text>>;412      /**413       * Returns protocol version.414       **/415      version: AugmentedRpc<() => Observable<Text>>;416    };417    offchain: {418      /**419       * Get offchain local storage under given key and prefix420       **/421      localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;422      /**423       * Set offchain local storage under given key and prefix424       **/425      localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;426    };427    payment: {428      /**429       * @deprecated Use `api.call.transactionPaymentApi.queryFeeDetails` instead430       * Query the detailed fee of a given encoded extrinsic431       **/432      queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;433      /**434       * @deprecated Use `api.call.transactionPaymentApi.queryInfo` instead435       * Retrieves the fee information for an encoded extrinsic436       **/437      queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfoV1>>;438    };439    povinfo: {440      /**441       * Estimate PoV size of encoded signed extrinsics442       **/443      estimateExtrinsicPoV: AugmentedRpc<(encodedXt: Vec<Bytes> | (Bytes | string | Uint8Array)[], at?: Hash | string | Uint8Array) => Observable<UpPovEstimateRpcPovInfo>>;444    };445    rmrk: {446      /**447       * Get tokens owned by an account in a collection448       **/449      accountTokens: AugmentedRpc<(accountId: AccountId32 | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;450      /**451       * Get base info452       **/453      base: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsBaseBaseInfo>>>;454      /**455       * Get all Base's parts456       **/457      baseParts: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPartPartType>>>;458      /**459       * Get collection by id460       **/461      collectionById: AugmentedRpc<(id: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsCollectionCollectionInfo>>>;462      /**463       * Get collection properties464       **/465      collectionProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPropertyPropertyInfo>>>;466      /**467       * Get the latest created collection id468       **/469      lastCollectionIdx: AugmentedRpc<(at?: Hash | string | Uint8Array) => Observable<u32>>;470      /**471       * Get NFT by collection id and NFT id472       **/473      nftById: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsNftNftInfo>>>;474      /**475       * Get NFT children476       **/477      nftChildren: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsNftNftChild>>>;478      /**479       * Get NFT properties480       **/481      nftProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPropertyPropertyInfo>>>;482      /**483       * Get NFT resource priorities484       **/485      nftResourcePriority: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u32>>>;486      /**487       * Get NFT resources488       **/489      nftResources: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsResourceResourceInfo>>>;490      /**491       * Get Base's theme names492       **/493      themeNames: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<Bytes>>>;494      /**495       * Get Theme's keys values496       **/497      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>>>;498    };499    rpc: {500      /**501       * Retrieves the list of RPC methods that are exposed by the node502       **/503      methods: AugmentedRpc<() => Observable<RpcMethods>>;504    };505    state: {506      /**507       * Perform a call to a builtin on the chain508       **/509      call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;510      /**511       * Retrieves the keys with prefix of a specific child storage512       **/513      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>>>;514      /**515       * Returns proof of storage for child key entries at a specific block state.516       **/517      getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;518      /**519       * Retrieves the child storage for a key520       **/521      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>>;522      /**523       * Retrieves the child storage hash524       **/525      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>>;526      /**527       * Retrieves the child storage size528       **/529      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>>;530      /**531       * @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys532       * Retrieves the keys with a certain prefix533       **/534      getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;535      /**536       * Returns the keys with prefix with pagination support.537       **/538      getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;539      /**540       * Returns the runtime metadata541       **/542      getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;543      /**544       * @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys545       * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)546       **/547      getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;548      /**549       * Returns proof of storage entries at a specific block state550       **/551      getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;552      /**553       * Get the runtime version554       **/555      getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;556      /**557       * Retrieves the storage for a key558       **/559      getStorage: AugmentedRpc<<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>>;560      /**561       * Retrieves the storage hash562       **/563      getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;564      /**565       * Retrieves the storage size566       **/567      getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;568      /**569       * Query historical storage entries (by key) starting from a start block570       **/571      queryStorage: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>>;572      /**573       * Query storage entries (by key) starting at block hash given as the second parameter574       **/575      queryStorageAt: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>>;576      /**577       * Retrieves the runtime version via subscription578       **/579      subscribeRuntimeVersion: AugmentedRpc<() => Observable<RuntimeVersion>>;580      /**581       * Subscribes to storage changes for the provided keys582       **/583      subscribeStorage: AugmentedRpc<<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>>;584      /**585       * Provides a way to trace the re-execution of a single block586       **/587      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>>;588      /**589       * Check current migration state590       **/591      trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>;592    };593    syncstate: {594      /**595       * Returns the json-serialized chainspec running the node, with a sync state.596       **/597      genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;598    };599    system: {600      /**601       * Retrieves the next accountIndex as available on the node602       **/603      accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;604      /**605       * Adds the supplied directives to the current log filter606       **/607      addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;608      /**609       * Adds a reserved peer610       **/611      addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;612      /**613       * Retrieves the chain614       **/615      chain: AugmentedRpc<() => Observable<Text>>;616      /**617       * Retrieves the chain type618       **/619      chainType: AugmentedRpc<() => Observable<ChainType>>;620      /**621       * Dry run an extrinsic at a given block622       **/623      dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;624      /**625       * Return health status of the node626       **/627      health: AugmentedRpc<() => Observable<Health>>;628      /**629       * 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 example630       **/631      localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;632      /**633       * Returns the base58-encoded PeerId of the node634       **/635      localPeerId: AugmentedRpc<() => Observable<Text>>;636      /**637       * Retrieves the node name638       **/639      name: AugmentedRpc<() => Observable<Text>>;640      /**641       * Returns current state of the network642       **/643      networkState: AugmentedRpc<() => Observable<NetworkState>>;644      /**645       * Returns the roles the node is running as646       **/647      nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;648      /**649       * Returns the currently connected peers650       **/651      peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;652      /**653       * Get a custom set of properties as a JSON object, defined in the chain spec654       **/655      properties: AugmentedRpc<() => Observable<ChainProperties>>;656      /**657       * Remove a reserved peer658       **/659      removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;660      /**661       * Returns the list of reserved peers662       **/663      reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;664      /**665       * Resets the log filter to Substrate defaults666       **/667      resetLogFilter: AugmentedRpc<() => Observable<Null>>;668      /**669       * Returns the state of the syncing of the node670       **/671      syncState: AugmentedRpc<() => Observable<SyncState>>;672      /**673       * Retrieves the version of the node674       **/675      version: AugmentedRpc<() => Observable<Text>>;676    };677    unique: {678      /**679       * Get the amount of any user tokens owned by an account680       **/681      accountBalance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;682      /**683       * Get tokens owned by an account in a collection684       **/685      accountTokens: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;686      /**687       * Get the list of admin accounts of a collection688       **/689      adminlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;690      /**691       * Get the amount of currently possible sponsored transactions on a token for the fee to be taken off a sponsor692       **/693      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>>;694      /**695       * Tells whether the given `owner` approves the `operator`.696       **/697      allowanceForAll: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, operator: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<bool>>>;698      /**699       * Check if a user is allowed to operate within a collection700       **/701      allowed: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;702      /**703       * Get the list of accounts allowed to operate within a collection704       **/705      allowlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;706      /**707       * Get the amount of a specific token owned by an account708       **/709      balance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;710      /**711       * Get a collection by the specified ID712       **/713      collectionById: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsRpcCollection>>>;714      /**715       * Get collection properties, optionally limited to the provided keys716       **/717      collectionProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;718      /**719       * Get chain stats about collections720       **/721      collectionStats: AugmentedRpc<(at?: Hash | string | Uint8Array) => Observable<UpDataStructsCollectionStats>>;722      /**723       * Get tokens contained within a collection724       **/725      collectionTokens: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;726      /**727       * Get token constant metadata728       **/729      constMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;730      /**731       * Get effective collection limits732       **/733      effectiveCollectionLimits: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollectionLimits>>>;734      /**735       * Get the last token ID created in a collection736       **/737      lastTokenId: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;738      /**739       * Get the number of blocks until sponsoring a transaction is available740       **/741      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>>>;742      /**743       * Get property permissions, optionally limited to the provided keys744       **/745      propertyPermissions: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsPropertyKeyPermission>>>;746      /**747       * Get tokens nested directly into the token748       **/749      tokenChildren: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsTokenChild>>>;750      /**751       * Get token data, including properties, optionally limited to the provided keys, and total pieces for an RFT752       **/753      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>>;754      /**755       * Check if the token exists756       **/757      tokenExists: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;758      /**759       * Get the token owner760       **/761      tokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;762      /**763       * Returns 10 tokens owners in no particular order764       **/765      tokenOwners: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;766      /**767       * Get token properties, optionally limited to the provided keys768       **/769      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>>>;770      /**771       * Get the topmost token owner in the hierarchy of a possibly nested token772       **/773      topmostTokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;774      /**775       * Get the total amount of pieces of an RFT776       **/777      totalPieces: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u128>>>;778      /**779       * Get the amount of distinctive tokens present in a collection780       **/781      totalSupply: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;782      /**783       * Get token variable metadata784       **/785      variableMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;786    };787    web3: {788      /**789       * Returns current client version.790       **/791      clientVersion: AugmentedRpc<() => Observable<Text>>;792      /**793       * Returns sha3 of the given data794       **/795      sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;796    };797  } // RpcInterface798} // declare module