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

difftreelog

source

tests/src/interfaces/augment-api-rpc.ts41.0 KiBsourcehistory
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/rpc-core/types/jsonrpc';78import type { PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsPartPartType, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRpcCollection, UpDataStructsTokenChild, UpDataStructsTokenData } from './default';9import type { AugmentedRpc } from '@polkadot/rpc-core/types';10import type { Metadata, StorageKey } from '@polkadot/types';11import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from '@polkadot/types-codec';12import type { AnyNumber, Codec } from '@polkadot/types-codec/types';13import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';14import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';15import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';16import type { BlockHash } from '@polkadot/types/interfaces/chain';17import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';18import type { AuthorityId } from '@polkadot/types/interfaces/consensus';19import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';20import type { BlockStats } from '@polkadot/types/interfaces/dev';21import type { CreatedBlock } from '@polkadot/types/interfaces/engine';22import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';23import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';24import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';25import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';26import type { StorageKind } from '@polkadot/types/interfaces/offchain';27import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';28import type { RpcMethods } from '@polkadot/types/interfaces/rpc';29import type { AccountId, AccountId32, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';30import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';31import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';32import type { IExtrinsic, Observable } from '@polkadot/types/types';3334export type __AugmentedRpc = AugmentedRpc<() => unknown>;3536declare module '@polkadot/rpc-core/types/jsonrpc' {37  interface RpcInterface {38    author: {39      /**40       * Returns true if the keystore has private keys for the given public key and key type.41       **/42      hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;43      /**44       * Returns true if the keystore has private keys for the given session public keys.45       **/46      hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable<bool>>;47      /**48       * Insert a key into the keystore.49       **/50      insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;51      /**52       * Returns all pending extrinsics, potentially grouped by sender53       **/54      pendingExtrinsics: AugmentedRpc<() => Observable<Vec<Extrinsic>>>;55      /**56       * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting57       **/58      removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[]) => Observable<Vec<Hash>>>;59      /**60       * Generate new session keys and returns the corresponding public keys61       **/62      rotateKeys: AugmentedRpc<() => Observable<Bytes>>;63      /**64       * Submit and subscribe to watch an extrinsic until unsubscribed65       **/66      submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ExtrinsicStatus>>;67      /**68       * Submit a fully formatted extrinsic for block inclusion69       **/70      submitExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Hash>>;71    };72    babe: {73      /**74       * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore75       **/76      epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;77    };78    beefy: {79      /**80       * Returns hash of the latest BEEFY finalized block as seen by this client.81       **/82      getFinalizedHead: AugmentedRpc<() => Observable<H256>>;83      /**84       * Returns the block most recently finalized by BEEFY, alongside side its justification.85       **/86      subscribeJustifications: AugmentedRpc<() => Observable<BeefySignedCommitment>>;87    };88    chain: {89      /**90       * Get header and body of a relay chain block91       **/92      getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<SignedBlock>>;93      /**94       * Get the block hash for a specific block95       **/96      getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>>;97      /**98       * Get hash of the last finalized block in the canon chain99       **/100      getFinalizedHead: AugmentedRpc<() => Observable<BlockHash>>;101      /**102       * Retrieves the header for a specific block103       **/104      getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<Header>>;105      /**106       * Retrieves the newest header via subscription107       **/108      subscribeAllHeads: AugmentedRpc<() => Observable<Header>>;109      /**110       * Retrieves the best finalized header via subscription111       **/112      subscribeFinalizedHeads: AugmentedRpc<() => Observable<Header>>;113      /**114       * Retrieves the best header via subscription115       **/116      subscribeNewHeads: AugmentedRpc<() => Observable<Header>>;117    };118    childstate: {119      /**120       * Returns the keys with prefix from a child storage, leave empty to get all the keys121       **/122      getKeys: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;123      /**124       * Returns the keys with prefix from a child storage with pagination support125       **/126      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>>>;127      /**128       * Returns a child storage entry at a specific block state129       **/130      getStorage: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<StorageData>>>;131      /**132       * Returns child storage entries for multiple keys at a specific block state133       **/134      getStorageEntries: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | string | Uint8Array) => Observable<Vec<Option<StorageData>>>>;135      /**136       * Returns the hash of a child storage entry at a block state137       **/138      getStorageHash: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<Hash>>>;139      /**140       * Returns the size of a child storage entry at a block state141       **/142      getStorageSize: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;143    };144    contracts: {145      /**146       * Executes a call to a contract147       **/148      call: AugmentedRpc<(callRequest: ContractCallRequest | { origin?: any; dest?: any; value?: any; gasLimit?: any; storageDepositLimit?: any; inputData?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;149      /**150       * Returns the value under a specified storage key in a contract151       **/152      getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;153      /**154       * Instantiate a new contract155       **/156      instantiate: AugmentedRpc<(request: InstantiateRequest | { origin?: any; value?: any; gasLimit?: any; storageDepositLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;157      /**158       * Returns the projected time a given contract will be able to sustain paying its rent159       **/160      rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;161      /**162       * Upload new code without instantiating a contract from it163       **/164      uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | { origin?: any; code?: any; storageDepositLimit?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;165    };166    dev: {167      /**168       * Reexecute the specified `block_hash` and gather statistics while doing so169       **/170      getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>;171    };172    engine: {173      /**174       * Instructs the manual-seal authorship task to create a new block175       **/176      createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;177      /**178       * Instructs the manual-seal authorship task to finalize a block179       **/180      finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;181    };182    eth: {183      /**184       * Returns accounts list.185       **/186      accounts: AugmentedRpc<() => Observable<Vec<H160>>>;187      /**188       * Returns the blockNumber189       **/190      blockNumber: AugmentedRpc<() => Observable<U256>>;191      /**192       * Call contract, returning the output data.193       **/194      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>>;195      /**196       * Returns the chain ID used for transaction signing at the current best block. None is returned if not available.197       **/198      chainId: AugmentedRpc<() => Observable<U64>>;199      /**200       * Returns block author.201       **/202      coinbase: AugmentedRpc<() => Observable<H160>>;203      /**204       * Estimate gas needed for execution of given contract.205       **/206      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>>;207      /**208       * Returns fee history for given block count & reward percentiles209       **/210      feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> | (f64)[]) => Observable<EthFeeHistory>>;211      /**212       * Returns current gas price.213       **/214      gasPrice: AugmentedRpc<() => Observable<U256>>;215      /**216       * Returns balance of the given account.217       **/218      getBalance: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;219      /**220       * Returns block with given hash.221       **/222      getBlockByHash: AugmentedRpc<(hash: H256 | string | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;223      /**224       * Returns block with given number.225       **/226      getBlockByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;227      /**228       * Returns the number of transactions in a block with given hash.229       **/230      getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;231      /**232       * Returns the number of transactions in a block with given block number.233       **/234      getBlockTransactionCountByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;235      /**236       * Returns the code at given address at given time (block number).237       **/238      getCode: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;239      /**240       * Returns filter changes since last poll.241       **/242      getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>>;243      /**244       * Returns all logs matching given filter (in a range 'from' - 'to').245       **/246      getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>>;247      /**248       * Returns logs matching given filter object.249       **/250      getLogs: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<Vec<EthLog>>>;251      /**252       * Returns proof for account and storage.253       **/254      getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;255      /**256       * Returns content of the storage at given address.257       **/258      getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;259      /**260       * Returns transaction at given block hash and index.261       **/262      getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;263      /**264       * Returns transaction by given block number and index.265       **/266      getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;267      /**268       * Get transaction by its hash.269       **/270      getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;271      /**272       * Returns the number of transactions sent from given address at given time (block number).273       **/274      getTransactionCount: AugmentedRpc<(hash: H256 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;275      /**276       * Returns transaction receipt by transaction hash.277       **/278      getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;279      /**280       * Returns an uncles at given block and index.281       **/282      getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;283      /**284       * Returns an uncles at given block and index.285       **/286      getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;287      /**288       * Returns the number of uncles in a block with given hash.289       **/290      getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;291      /**292       * Returns the number of uncles in a block with given block number.293       **/294      getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;295      /**296       * Returns the hash of the current block, the seedHash, and the boundary condition to be met.297       **/298      getWork: AugmentedRpc<() => Observable<EthWork>>;299      /**300       * Returns the number of hashes per second that the node is mining with.301       **/302      hashrate: AugmentedRpc<() => Observable<U256>>;303      /**304       * Returns max priority fee per gas305       **/306      maxPriorityFeePerGas: AugmentedRpc<() => Observable<U256>>;307      /**308       * Returns true if client is actively mining new blocks.309       **/310      mining: AugmentedRpc<() => Observable<bool>>;311      /**312       * Returns id of new block filter.313       **/314      newBlockFilter: AugmentedRpc<() => Observable<U256>>;315      /**316       * Returns id of new filter.317       **/318      newFilter: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<U256>>;319      /**320       * Returns id of new block filter.321       **/322      newPendingTransactionFilter: AugmentedRpc<() => Observable<U256>>;323      /**324       * Returns protocol version encoded as a string (quotes are necessary).325       **/326      protocolVersion: AugmentedRpc<() => Observable<u64>>;327      /**328       * Sends signed transaction, returning its hash.329       **/330      sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable<H256>>;331      /**332       * Sends transaction; will block waiting for signer to return the transaction hash333       **/334      sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array) => Observable<H256>>;335      /**336       * Used for submitting mining hashrate.337       **/338      submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;339      /**340       * Used for submitting a proof-of-work solution.341       **/342      submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;343      /**344       * Subscribe to Eth subscription.345       **/346      subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array) => Observable<Null>>;347      /**348       * Returns an object with data about the sync status or false.349       **/350      syncing: AugmentedRpc<() => Observable<EthSyncStatus>>;351      /**352       * Uninstalls filter.353       **/354      uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<bool>>;355    };356    grandpa: {357      /**358       * Prove finality for the given block number, returning the Justification for the last block in the set.359       **/360      proveFinality: AugmentedRpc<(blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;361      /**362       * Returns the state of the current best round state as well as the ongoing background rounds363       **/364      roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;365      /**366       * Subscribes to grandpa justifications367       **/368      subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;369    };370    mmr: {371      /**372       * Generate MMR proof for the given leaf indices.373       **/374      generateBatchProof: AugmentedRpc<(leafIndices: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;375      /**376       * Generate MMR proof for given leaf index.377       **/378      generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;379    };380    net: {381      /**382       * Returns true if client is actively listening for network connections. Otherwise false.383       **/384      listening: AugmentedRpc<() => Observable<bool>>;385      /**386       * Returns number of peers connected to node.387       **/388      peerCount: AugmentedRpc<() => Observable<Text>>;389      /**390       * Returns protocol version.391       **/392      version: AugmentedRpc<() => Observable<Text>>;393    };394    offchain: {395      /**396       * Get offchain local storage under given key and prefix397       **/398      localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;399      /**400       * Set offchain local storage under given key and prefix401       **/402      localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;403    };404    payment: {405      /**406       * Query the detailed fee of a given encoded extrinsic407       **/408      queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;409      /**410       * Retrieves the fee information for an encoded extrinsic411       **/412      queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfo>>;413    };414    rmrk: {415      /**416       * Get tokens owned by an account in a collection417       **/418      accountTokens: AugmentedRpc<(accountId: AccountId32 | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;419      /**420       * Get base info421       **/422      base: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsBaseBaseInfo>>>;423      /**424       * Get all Base's parts425       **/426      baseParts: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPartPartType>>>;427      /**428       * Get collection by id429       **/430      collectionById: AugmentedRpc<(id: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsCollectionCollectionInfo>>>;431      /**432       * Get collection properties433       **/434      collectionProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPropertyPropertyInfo>>>;435      /**436       * Get the latest created collection id437       **/438      lastCollectionIdx: AugmentedRpc<(at?: Hash | string | Uint8Array) => Observable<u32>>;439      /**440       * Get NFT by collection id and NFT id441       **/442      nftById: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsNftNftInfo>>>;443      /**444       * Get NFT children445       **/446      nftChildren: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsNftNftChild>>>;447      /**448       * Get NFT properties449       **/450      nftProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPropertyPropertyInfo>>>;451      /**452       * Get NFT resource priorities453       **/454      nftResourcePriority: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u32>>>;455      /**456       * Get NFT resources457       **/458      nftResources: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsResourceResourceInfo>>>;459      /**460       * Get Base's theme names461       **/462      themeNames: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<Bytes>>>;463      /**464       * Get Theme's keys values465       **/466      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>>>;467    };468    rpc: {469      /**470       * Retrieves the list of RPC methods that are exposed by the node471       **/472      methods: AugmentedRpc<() => Observable<RpcMethods>>;473    };474    state: {475      /**476       * Perform a call to a builtin on the chain477       **/478      call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;479      /**480       * Retrieves the keys with prefix of a specific child storage481       **/482      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>>>;483      /**484       * Returns proof of storage for child key entries at a specific block state.485       **/486      getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;487      /**488       * Retrieves the child storage for a key489       **/490      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>>;491      /**492       * Retrieves the child storage hash493       **/494      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>>;495      /**496       * Retrieves the child storage size497       **/498      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>>;499      /**500       * Retrieves the keys with a certain prefix501       **/502      getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;503      /**504       * Returns the keys with prefix with pagination support.505       **/506      getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;507      /**508       * Returns the runtime metadata509       **/510      getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;511      /**512       * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)513       **/514      getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;515      /**516       * Returns proof of storage entries at a specific block state517       **/518      getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;519      /**520       * Get the runtime version521       **/522      getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;523      /**524       * Retrieves the storage for a key525       **/526      getStorage: AugmentedRpc<<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>>;527      /**528       * Retrieves the storage hash529       **/530      getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;531      /**532       * Retrieves the storage size533       **/534      getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;535      /**536       * Query historical storage entries (by key) starting from a start block537       **/538      queryStorage: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>>;539      /**540       * Query storage entries (by key) starting at block hash given as the second parameter541       **/542      queryStorageAt: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>>;543      /**544       * Retrieves the runtime version via subscription545       **/546      subscribeRuntimeVersion: AugmentedRpc<() => Observable<RuntimeVersion>>;547      /**548       * Subscribes to storage changes for the provided keys549       **/550      subscribeStorage: AugmentedRpc<<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>>;551      /**552       * Provides a way to trace the re-execution of a single block553       **/554      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>>;555      /**556       * Check current migration state557       **/558      trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>;559    };560    syncstate: {561      /**562       * Returns the json-serialized chainspec running the node, with a sync state.563       **/564      genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;565    };566    system: {567      /**568       * Retrieves the next accountIndex as available on the node569       **/570      accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;571      /**572       * Adds the supplied directives to the current log filter573       **/574      addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;575      /**576       * Adds a reserved peer577       **/578      addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;579      /**580       * Retrieves the chain581       **/582      chain: AugmentedRpc<() => Observable<Text>>;583      /**584       * Retrieves the chain type585       **/586      chainType: AugmentedRpc<() => Observable<ChainType>>;587      /**588       * Dry run an extrinsic at a given block589       **/590      dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;591      /**592       * Return health status of the node593       **/594      health: AugmentedRpc<() => Observable<Health>>;595      /**596       * 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 example597       **/598      localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;599      /**600       * Returns the base58-encoded PeerId of the node601       **/602      localPeerId: AugmentedRpc<() => Observable<Text>>;603      /**604       * Retrieves the node name605       **/606      name: AugmentedRpc<() => Observable<Text>>;607      /**608       * Returns current state of the network609       **/610      networkState: AugmentedRpc<() => Observable<NetworkState>>;611      /**612       * Returns the roles the node is running as613       **/614      nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;615      /**616       * Returns the currently connected peers617       **/618      peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;619      /**620       * Get a custom set of properties as a JSON object, defined in the chain spec621       **/622      properties: AugmentedRpc<() => Observable<ChainProperties>>;623      /**624       * Remove a reserved peer625       **/626      removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;627      /**628       * Returns the list of reserved peers629       **/630      reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;631      /**632       * Resets the log filter to Substrate defaults633       **/634      resetLogFilter: AugmentedRpc<() => Observable<Null>>;635      /**636       * Returns the state of the syncing of the node637       **/638      syncState: AugmentedRpc<() => Observable<SyncState>>;639      /**640       * Retrieves the version of the node641       **/642      version: AugmentedRpc<() => Observable<Text>>;643    };644    unique: {645      /**646       * Get the amount of any user tokens owned by an account647       **/648      accountBalance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;649      /**650       * Get tokens owned by an account in a collection651       **/652      accountTokens: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;653      /**654       * Get the list of admin accounts of a collection655       **/656      adminlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;657      /**658       * Get the amount of currently possible sponsored transactions on a token for the fee to be taken off a sponsor659       **/660      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>>;661      /**662       * Check if a user is allowed to operate within a collection663       **/664      allowed: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;665      /**666       * Get the list of accounts allowed to operate within a collection667       **/668      allowlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;669      /**670       * Get the amount of a specific token owned by an account671       **/672      balance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;673      /**674       * Get a collection by the specified ID675       **/676      collectionById: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsRpcCollection>>>;677      /**678       * Get collection properties, optionally limited to the provided keys679       **/680      collectionProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;681      /**682       * Get chain stats about collections683       **/684      collectionStats: AugmentedRpc<(at?: Hash | string | Uint8Array) => Observable<UpDataStructsCollectionStats>>;685      /**686       * Get tokens contained within a collection687       **/688      collectionTokens: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;689      /**690       * Get token constant metadata691       **/692      constMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;693      /**694       * Get effective collection limits695       **/696      effectiveCollectionLimits: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollectionLimits>>>;697      /**698       * Get the last token ID created in a collection699       **/700      lastTokenId: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;701      /**702       * Get the number of blocks until sponsoring a transaction is available703       **/704      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>>>;705      /**706       * Get property permissions, optionally limited to the provided keys707       **/708      propertyPermissions: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsPropertyKeyPermission>>>;709      /**710       * Get tokens nested directly into the token711       **/712      tokenChildren: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsTokenChild>>>;713      /**714       * Get token data, including properties, optionally limited to the provided keys, and total pieces for an RFT715       **/716      tokenData: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<UpDataStructsTokenData>>;717      /**718       * Check if the token exists719       **/720      tokenExists: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;721      /**722       * Get the token owner723       **/724      tokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;725      /**726       * Returns 10 tokens owners in no particular order727       **/728      tokenOwners: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;729      /**730       * Get token properties, optionally limited to the provided keys731       **/732      tokenProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;733      /**734       * Get the topmost token owner in the hierarchy of a possibly nested token735       **/736      topmostTokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;737      /**738       * Get the total amount of pieces of an RFT739       **/740      totalPieces: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u128>>>;741      /**742       * Get the amount of distinctive tokens present in a collection743       **/744      totalSupply: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;745      /**746       * Get token variable metadata747       **/748      variableMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;749    };750    web3: {751      /**752       * Returns current client version.753       **/754      clientVersion: AugmentedRpc<() => Observable<Text>>;755      /**756       * Returns sha3 of the given data757       **/758      sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;759    };760  } // RpcInterface761} // declare module