import type { AccessKeyView, AccountView, CallResult, CryptoHash, EXPERIMENTALMaintenanceWindowsResponse, EXPERIMENTALValidatorsOrderedResponse, GenesisConfig, GenesisConfigRequest, MaintenanceWindowsResponse, RpcBlockRequest, RpcBlockResponse, RpcCallFunctionRequest, RpcCallFunctionResponse, RpcChunkRequest, RpcChunkResponse, RpcClientConfigRequest, RpcClientConfigResponse, RpcCongestionLevelRequest, RpcCongestionLevelResponse, RpcGasPriceRequest, RpcGasPriceResponse, RpcHealthRequest, RpcHealthResponse, RpcLightClientBlockProofRequest, RpcLightClientBlockProofResponse, RpcLightClientExecutionProofRequest, RpcLightClientExecutionProofResponse, RpcLightClientNextBlockRequest, RpcLightClientNextBlockResponse, RpcMaintenanceWindowsRequest, RpcNetworkInfoRequest, RpcNetworkInfoResponse, RpcProtocolConfigRequest, RpcProtocolConfigResponse, RpcQueryRequest, RpcQueryResponse, RpcReceiptRequest, RpcReceiptResponse, RpcSendTransactionRequest, RpcSplitStorageInfoRequest, RpcSplitStorageInfoResponse, RpcStateChangesInBlockByTypeRequest, RpcStateChangesInBlockByTypeResponse, RpcStateChangesInBlockRequest, RpcStateChangesInBlockResponse, RpcStatusRequest, RpcStatusResponse, RpcTransactionResponse, RpcTransactionStatusRequest, RpcValidatorRequest, RpcValidatorResponse, RpcValidatorsOrderedRequest, RpcViewAccessKeyListRequest, RpcViewAccessKeyListResponse, RpcViewAccessKeyRequest, RpcViewAccessKeyResponse, RpcViewAccountRequest, RpcViewAccountResponse, RpcViewCodeRequest, RpcViewCodeResponse, RpcViewGasKeyListRequest, RpcViewGasKeyListResponse, RpcViewGasKeyRequest, RpcViewGasKeyResponse, RpcViewStateRequest, RpcViewStateResponse } from '@near-js/jsonrpc-types'; import type { NearRpcClient } from './client'; export interface DynamicRpcMethods { /** Calls a view function on a contract and returns the result. */ experimentalCallFunction(params: RpcCallFunctionRequest): Promise; /** * [Deprecated] Returns changes for a given account, contract or contract code * for given block height or hash. Consider using changes instead. */ experimentalChanges(params: RpcStateChangesInBlockByTypeRequest): Promise; /** * [Deprecated] Returns changes in block for given block height or hash over * all transactions for all the types. Includes changes like account_touched, * access_key_touched, data_touched, contract_code_touched. Consider using * block_effects instead */ experimentalChangesInBlock(params: RpcStateChangesInBlockRequest): Promise; /** * Queries the congestion level of a shard. More info about congestion * [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion) */ experimentalCongestionLevel(params: RpcCongestionLevelRequest): Promise; /** * [Deprecated] Get initial state and parameters for the genesis block. * Consider genesis_config instead. */ experimentalGenesisConfig(params?: GenesisConfigRequest): Promise; /** Returns the proofs for a transaction execution. */ experimentalLightClientBlockProof(params: RpcLightClientBlockProofRequest): Promise; /** Returns the proofs for a transaction execution. */ experimentalLightClientProof(params: RpcLightClientExecutionProofRequest): Promise; /** * [Deprecated] Returns the future windows for maintenance in current epoch * for the specified account. In the maintenance windows, the node will not be * block producer or chunk producer. Consider using maintenance_windows * instead. */ experimentalMaintenanceWindows(params: RpcMaintenanceWindowsRequest): Promise; /** * A configuration that defines the protocol-level parameters such as * gas/storage costs, limits, feature flags, other settings */ experimentalProtocolConfig(params: RpcProtocolConfigRequest): Promise; /** Fetches a receipt by its ID (as is, without a status or execution outcome) */ experimentalReceipt(params: RpcReceiptRequest): Promise; /** * Contains the split storage information. More info on split storage * [here](https://near-nodes.io/archival/split-storage-archival) */ experimentalSplitStorageInfo(params: RpcSplitStorageInfoRequest): Promise; /** * Queries status of a transaction by hash, returning the final transaction * result and details of all receipts. */ experimentalTxStatus(params: RpcTransactionStatusRequest): Promise; /** * Returns the current epoch validators ordered in the block producer order * with repetition. This endpoint is solely used for bridge currently and is * not intended for other external use cases. */ experimentalValidatorsOrdered(params: RpcValidatorsOrderedRequest): Promise; /** Returns information about a single access key for given account. */ experimentalViewAccessKey(params: RpcViewAccessKeyRequest): Promise; /** Returns all access keys for a given account. */ experimentalViewAccessKeyList(params: RpcViewAccessKeyListRequest): Promise; /** Returns information about an account for given account_id. */ experimentalViewAccount(params: RpcViewAccountRequest): Promise; /** Returns the contract code (Wasm binary) deployed to the account. */ experimentalViewCode(params: RpcViewCodeRequest): Promise; /** Returns information about a single gas key for given account. */ experimentalViewGasKey(params: RpcViewGasKeyRequest): Promise; /** Returns all gas keys for a given account. */ experimentalViewGasKeyList(params: RpcViewGasKeyListRequest): Promise; /** Returns the state (key-value pairs) of a contract based on the key prefix. */ experimentalViewState(params: RpcViewStateRequest): Promise; /** Returns block details for given height or hash */ block(params: RpcBlockRequest): Promise; /** * Returns changes in block for given block height or hash over all * transactions for all the types. Includes changes like account_touched, * access_key_touched, data_touched, contract_code_touched. */ blockEffects(params: RpcStateChangesInBlockRequest): Promise; /** * [Deprecated] Sends a transaction and immediately returns transaction hash. * Consider using send_tx instead. */ broadcastTxAsync(params: RpcSendTransactionRequest): Promise; /** * [Deprecated] Sends a transaction and waits until transaction is fully * complete. (Has a 10 second timeout). Consider using send_tx instead. */ broadcastTxCommit(params: RpcSendTransactionRequest): Promise; /** * Returns changes for a given account, contract or contract code for given * block height or hash. */ changes(params: RpcStateChangesInBlockByTypeRequest): Promise; /** * Returns details of a specific chunk. You can run a block details query to * get a valid chunk hash. */ chunk(params: RpcChunkRequest): Promise; /** Queries client node configuration */ clientConfig(params?: RpcClientConfigRequest): Promise; /** * Returns gas price for a specific block_height or block_hash. Using [null] * will return the most recent block's gas price. */ gasPrice(params: RpcGasPriceRequest): Promise; /** Get initial state and parameters for the genesis block */ genesisConfig(params?: GenesisConfigRequest): Promise; /** Returns the current health status of the RPC node the client connects to. */ health(params?: RpcHealthRequest): Promise; /** Returns the proofs for a transaction execution. */ lightClientProof(params: RpcLightClientExecutionProofRequest): Promise; /** * Returns the future windows for maintenance in current epoch for the * specified account. In the maintenance windows, the node will not be block * producer or chunk producer. */ maintenanceWindows(params: RpcMaintenanceWindowsRequest): Promise; /** * Queries the current state of node network connections. This includes * information about active peers, transmitted data, known producers, etc. */ networkInfo(params?: RpcNetworkInfoRequest): Promise; /** Returns the next light client block. */ nextLightClientBlock(params: RpcLightClientNextBlockRequest): Promise; /** * This module allows you to make generic requests to the network. The * `RpcQueryRequest` struct takes in a * [`BlockReference`](https://docs.rs/near-primitives/0.12.0/near_primitives/types/enum.BlockReference.html) * and a * [`QueryRequest`](https://docs.rs/near-primitives/0.12.0/near_primitives/views/enum.QueryRequest.html). * The `BlockReference` enum allows you to specify a block by `Finality`, * `BlockId` or `SyncCheckpoint`. The `QueryRequest` enum provides multiple * variants for performing the following actions: - View an account's details * - View a contract's code - View the state of an account - View the * `AccessKey` of an account - View the `AccessKeyList` of an account - Call a * function in a contract deployed on the network. */ query(params: RpcQueryRequest): Promise; /** * Sends transaction. Returns the guaranteed execution status and the results * the blockchain can provide at the moment. */ sendTx(params: RpcSendTransactionRequest): Promise; /** * Requests the status of the connected RPC node. This includes information * about sync status, nearcore node version, protocol version, the current set * of validators, etc. */ status(params?: RpcStatusRequest): Promise; /** * Queries status of a transaction by hash and returns the final transaction * result. */ tx(params: RpcTransactionStatusRequest): Promise; /** * Queries active validators on the network. Returns details and the state of * validation on the blockchain. */ validators(params: RpcValidatorRequest): Promise; } export interface ConvenienceMethods { viewAccount(params: { accountId: string; finality?: 'final' | 'near-final' | 'optimistic'; blockId?: string | number; }): Promise; viewFunction(params: { accountId: string; methodName: string; argsBase64?: string; finality?: 'final' | 'near-final' | 'optimistic'; blockId?: string | number; }): Promise; viewAccessKey(params: { accountId: string; publicKey: string; finality?: 'final' | 'near-final' | 'optimistic'; blockId?: string | number; }): Promise; } export interface CompleteClientInterface extends DynamicRpcMethods, ConvenienceMethods { call(method: string, params?: TParams): Promise; } /** Calls a view function on a contract and returns the result. */ export declare function experimentalCallFunction(client: NearRpcClient, params: RpcCallFunctionRequest): Promise; /** * [Deprecated] Returns changes for a given account, contract or contract code * for given block height or hash. Consider using changes instead. */ export declare function experimentalChanges(client: NearRpcClient, params: RpcStateChangesInBlockByTypeRequest): Promise; /** * [Deprecated] Returns changes in block for given block height or hash over * all transactions for all the types. Includes changes like account_touched, * access_key_touched, data_touched, contract_code_touched. Consider using * block_effects instead */ export declare function experimentalChangesInBlock(client: NearRpcClient, params: RpcStateChangesInBlockRequest): Promise; /** * Queries the congestion level of a shard. More info about congestion * [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion) */ export declare function experimentalCongestionLevel(client: NearRpcClient, params: RpcCongestionLevelRequest): Promise; /** * [Deprecated] Get initial state and parameters for the genesis block. * Consider genesis_config instead. */ export declare function experimentalGenesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise; /** Returns the proofs for a transaction execution. */ export declare function experimentalLightClientBlockProof(client: NearRpcClient, params: RpcLightClientBlockProofRequest): Promise; /** Returns the proofs for a transaction execution. */ export declare function experimentalLightClientProof(client: NearRpcClient, params: RpcLightClientExecutionProofRequest): Promise; /** * [Deprecated] Returns the future windows for maintenance in current epoch * for the specified account. In the maintenance windows, the node will not be * block producer or chunk producer. Consider using maintenance_windows * instead. */ export declare function experimentalMaintenanceWindows(client: NearRpcClient, params: RpcMaintenanceWindowsRequest): Promise; /** * A configuration that defines the protocol-level parameters such as * gas/storage costs, limits, feature flags, other settings */ export declare function experimentalProtocolConfig(client: NearRpcClient, params: RpcProtocolConfigRequest): Promise; /** Fetches a receipt by its ID (as is, without a status or execution outcome) */ export declare function experimentalReceipt(client: NearRpcClient, params: RpcReceiptRequest): Promise; /** * Contains the split storage information. More info on split storage * [here](https://near-nodes.io/archival/split-storage-archival) */ export declare function experimentalSplitStorageInfo(client: NearRpcClient, params: RpcSplitStorageInfoRequest): Promise; /** * Queries status of a transaction by hash, returning the final transaction * result and details of all receipts. */ export declare function experimentalTxStatus(client: NearRpcClient, params: RpcTransactionStatusRequest): Promise; /** * Returns the current epoch validators ordered in the block producer order * with repetition. This endpoint is solely used for bridge currently and is * not intended for other external use cases. */ export declare function experimentalValidatorsOrdered(client: NearRpcClient, params: RpcValidatorsOrderedRequest): Promise; /** Returns information about a single access key for given account. */ export declare function experimentalViewAccessKey(client: NearRpcClient, params: RpcViewAccessKeyRequest): Promise; /** Returns all access keys for a given account. */ export declare function experimentalViewAccessKeyList(client: NearRpcClient, params: RpcViewAccessKeyListRequest): Promise; /** Returns information about an account for given account_id. */ export declare function experimentalViewAccount(client: NearRpcClient, params: RpcViewAccountRequest): Promise; /** Returns the contract code (Wasm binary) deployed to the account. */ export declare function experimentalViewCode(client: NearRpcClient, params: RpcViewCodeRequest): Promise; /** Returns information about a single gas key for given account. */ export declare function experimentalViewGasKey(client: NearRpcClient, params: RpcViewGasKeyRequest): Promise; /** Returns all gas keys for a given account. */ export declare function experimentalViewGasKeyList(client: NearRpcClient, params: RpcViewGasKeyListRequest): Promise; /** Returns the state (key-value pairs) of a contract based on the key prefix. */ export declare function experimentalViewState(client: NearRpcClient, params: RpcViewStateRequest): Promise; /** Returns block details for given height or hash */ export declare function block(client: NearRpcClient, params: RpcBlockRequest): Promise; /** * Returns changes in block for given block height or hash over all * transactions for all the types. Includes changes like account_touched, * access_key_touched, data_touched, contract_code_touched. */ export declare function blockEffects(client: NearRpcClient, params: RpcStateChangesInBlockRequest): Promise; /** * [Deprecated] Sends a transaction and immediately returns transaction hash. * Consider using send_tx instead. */ export declare function broadcastTxAsync(client: NearRpcClient, params: RpcSendTransactionRequest): Promise; /** * [Deprecated] Sends a transaction and waits until transaction is fully * complete. (Has a 10 second timeout). Consider using send_tx instead. */ export declare function broadcastTxCommit(client: NearRpcClient, params: RpcSendTransactionRequest): Promise; /** * Returns changes for a given account, contract or contract code for given * block height or hash. */ export declare function changes(client: NearRpcClient, params: RpcStateChangesInBlockByTypeRequest): Promise; /** * Returns details of a specific chunk. You can run a block details query to * get a valid chunk hash. */ export declare function chunk(client: NearRpcClient, params: RpcChunkRequest): Promise; /** Queries client node configuration */ export declare function clientConfig(client: NearRpcClient, params?: RpcClientConfigRequest): Promise; /** * Returns gas price for a specific block_height or block_hash. Using [null] * will return the most recent block's gas price. */ export declare function gasPrice(client: NearRpcClient, params: RpcGasPriceRequest): Promise; /** Get initial state and parameters for the genesis block */ export declare function genesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise; /** Returns the current health status of the RPC node the client connects to. */ export declare function health(client: NearRpcClient, params?: RpcHealthRequest): Promise; /** Returns the proofs for a transaction execution. */ export declare function lightClientProof(client: NearRpcClient, params: RpcLightClientExecutionProofRequest): Promise; /** * Returns the future windows for maintenance in current epoch for the * specified account. In the maintenance windows, the node will not be block * producer or chunk producer. */ export declare function maintenanceWindows(client: NearRpcClient, params: RpcMaintenanceWindowsRequest): Promise; /** * Queries the current state of node network connections. This includes * information about active peers, transmitted data, known producers, etc. */ export declare function networkInfo(client: NearRpcClient, params?: RpcNetworkInfoRequest): Promise; /** Returns the next light client block. */ export declare function nextLightClientBlock(client: NearRpcClient, params: RpcLightClientNextBlockRequest): Promise; /** * This module allows you to make generic requests to the network. The * `RpcQueryRequest` struct takes in a * [`BlockReference`](https://docs.rs/near-primitives/0.12.0/near_primitives/types/enum.BlockReference.html) * and a * [`QueryRequest`](https://docs.rs/near-primitives/0.12.0/near_primitives/views/enum.QueryRequest.html). * The `BlockReference` enum allows you to specify a block by `Finality`, * `BlockId` or `SyncCheckpoint`. The `QueryRequest` enum provides multiple * variants for performing the following actions: - View an account's details * - View a contract's code - View the state of an account - View the * `AccessKey` of an account - View the `AccessKeyList` of an account - Call a * function in a contract deployed on the network. */ export declare function query(client: NearRpcClient, params: RpcQueryRequest): Promise; /** * Sends transaction. Returns the guaranteed execution status and the results * the blockchain can provide at the moment. */ export declare function sendTx(client: NearRpcClient, params: RpcSendTransactionRequest): Promise; /** * Requests the status of the connected RPC node. This includes information * about sync status, nearcore node version, protocol version, the current set * of validators, etc. */ export declare function status(client: NearRpcClient, params?: RpcStatusRequest): Promise; /** * Queries status of a transaction by hash and returns the final transaction * result. */ export declare function tx(client: NearRpcClient, params: RpcTransactionStatusRequest): Promise; /** * Queries active validators on the network. Returns details and the state of * validation on the blockchain. */ export declare function validators(client: NearRpcClient, params: RpcValidatorRequest): Promise; //# sourceMappingURL=generated-types.d.ts.map