import { N as NearRpcClient } from './convenience-CTo611pU.mjs'; export { b as ClientConfig, a as CompleteClientInterface, C as ConvenienceMethods, D as DynamicRpcMethods, f as JsonRpcClientError, e as JsonRpcError, g as JsonRpcNetworkError, J as JsonRpcRequest, c as JsonRpcResponse, j as NearRpcError, i as RpcError, R as RpcRequest, h as RpcResponse, d as defaultClient, p as parseCallResultToJson, v as viewFunctionAsJson } from './convenience-CTo611pU.mjs'; import { AccountView, CallResult, AccessKeyView, RpcCallFunctionRequest, RpcCallFunctionResponse, RpcStateChangesInBlockByTypeRequest, RpcStateChangesInBlockResponse, RpcStateChangesInBlockRequest, RpcStateChangesInBlockByTypeResponse, RpcCongestionLevelRequest, RpcCongestionLevelResponse, GenesisConfigRequest, GenesisConfig, RpcLightClientBlockProofRequest, RpcLightClientBlockProofResponse, RpcLightClientExecutionProofRequest, RpcLightClientExecutionProofResponse, RpcMaintenanceWindowsRequest, EXPERIMENTALMaintenanceWindowsResponse, RpcProtocolConfigRequest, RpcProtocolConfigResponse, RpcReceiptRequest, RpcReceiptResponse, RpcSplitStorageInfoRequest, RpcSplitStorageInfoResponse, RpcTransactionStatusRequest, RpcTransactionResponse, RpcValidatorsOrderedRequest, EXPERIMENTALValidatorsOrderedResponse, RpcViewAccessKeyRequest, RpcViewAccessKeyResponse, RpcViewAccessKeyListRequest, RpcViewAccessKeyListResponse, RpcViewAccountRequest, RpcViewAccountResponse, RpcViewCodeRequest, RpcViewCodeResponse, RpcViewGasKeyRequest, RpcViewGasKeyResponse, RpcViewGasKeyListRequest, RpcViewGasKeyListResponse, RpcViewStateRequest, RpcViewStateResponse, RpcBlockRequest, RpcBlockResponse, RpcSendTransactionRequest, CryptoHash, RpcChunkRequest, RpcChunkResponse, RpcClientConfigRequest, RpcClientConfigResponse, RpcGasPriceRequest, RpcGasPriceResponse, RpcHealthRequest, RpcHealthResponse, MaintenanceWindowsResponse, RpcNetworkInfoRequest, RpcNetworkInfoResponse, RpcLightClientNextBlockRequest, RpcLightClientNextBlockResponse, RpcQueryRequest, RpcQueryResponse, RpcStatusRequest, RpcStatusResponse, RpcValidatorRequest, RpcValidatorResponse } from '@near-js/jsonrpc-types'; export { JsonRpcRequestSchema, JsonRpcResponseSchema, RPC_METHODS } from '@near-js/jsonrpc-types'; declare function enableValidation(): void; declare function viewAccount(client: NearRpcClient, params: { accountId: string; finality?: 'final' | 'near-final' | 'optimistic'; blockId?: string | number; }): Promise; declare function viewFunction(client: NearRpcClient, params: { accountId: string; methodName: string; argsBase64?: string; finality?: 'final' | 'near-final' | 'optimistic'; blockId?: string | number; }): Promise; declare function viewAccessKey(client: NearRpcClient, params: { accountId: string; publicKey: string; finality?: 'final' | 'near-final' | 'optimistic'; blockId?: string | number; }): Promise; /** Calls a view function on a contract and returns the result. */ 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. */ 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 */ 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) */ declare function experimentalCongestionLevel(client: NearRpcClient, params: RpcCongestionLevelRequest): Promise; /** * [Deprecated] Get initial state and parameters for the genesis block. * Consider genesis_config instead. */ declare function experimentalGenesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise; /** Returns the proofs for a transaction execution. */ declare function experimentalLightClientBlockProof(client: NearRpcClient, params: RpcLightClientBlockProofRequest): Promise; /** Returns the proofs for a transaction execution. */ 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. */ 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 */ declare function experimentalProtocolConfig(client: NearRpcClient, params: RpcProtocolConfigRequest): Promise; /** Fetches a receipt by its ID (as is, without a status or execution outcome) */ 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) */ 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. */ 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. */ declare function experimentalValidatorsOrdered(client: NearRpcClient, params: RpcValidatorsOrderedRequest): Promise; /** Returns information about a single access key for given account. */ declare function experimentalViewAccessKey(client: NearRpcClient, params: RpcViewAccessKeyRequest): Promise; /** Returns all access keys for a given account. */ declare function experimentalViewAccessKeyList(client: NearRpcClient, params: RpcViewAccessKeyListRequest): Promise; /** Returns information about an account for given account_id. */ declare function experimentalViewAccount(client: NearRpcClient, params: RpcViewAccountRequest): Promise; /** Returns the contract code (Wasm binary) deployed to the account. */ declare function experimentalViewCode(client: NearRpcClient, params: RpcViewCodeRequest): Promise; /** Returns information about a single gas key for given account. */ declare function experimentalViewGasKey(client: NearRpcClient, params: RpcViewGasKeyRequest): Promise; /** Returns all gas keys for a given account. */ declare function experimentalViewGasKeyList(client: NearRpcClient, params: RpcViewGasKeyListRequest): Promise; /** Returns the state (key-value pairs) of a contract based on the key prefix. */ declare function experimentalViewState(client: NearRpcClient, params: RpcViewStateRequest): Promise; /** Returns block details for given height or hash */ 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. */ declare function blockEffects(client: NearRpcClient, params: RpcStateChangesInBlockRequest): Promise; /** * [Deprecated] Sends a transaction and immediately returns transaction hash. * Consider using send_tx instead. */ 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. */ declare function broadcastTxCommit(client: NearRpcClient, params: RpcSendTransactionRequest): Promise; /** * Returns changes for a given account, contract or contract code for given * block height or hash. */ 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. */ declare function chunk(client: NearRpcClient, params: RpcChunkRequest): Promise; /** Queries client node configuration */ 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. */ declare function gasPrice(client: NearRpcClient, params: RpcGasPriceRequest): Promise; /** Get initial state and parameters for the genesis block */ declare function genesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise; /** Returns the current health status of the RPC node the client connects to. */ declare function health(client: NearRpcClient, params?: RpcHealthRequest): Promise; /** Returns the proofs for a transaction execution. */ 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. */ 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. */ declare function networkInfo(client: NearRpcClient, params?: RpcNetworkInfoRequest): Promise; /** Returns the next light client block. */ 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. */ 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. */ 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. */ declare function status(client: NearRpcClient, params?: RpcStatusRequest): Promise; /** * Queries status of a transaction by hash and returns the final transaction * result. */ declare function tx(client: NearRpcClient, params: RpcTransactionStatusRequest): Promise; /** * Queries active validators on the network. Returns details and the state of * validation on the blockchain. */ declare function validators(client: NearRpcClient, params: RpcValidatorRequest): Promise; export { NearRpcClient, block, blockEffects, broadcastTxAsync, broadcastTxCommit, changes, chunk, clientConfig, NearRpcClient as default, enableValidation, experimentalCallFunction, experimentalChanges, experimentalChangesInBlock, experimentalCongestionLevel, experimentalGenesisConfig, experimentalLightClientBlockProof, experimentalLightClientProof, experimentalMaintenanceWindows, experimentalProtocolConfig, experimentalReceipt, experimentalSplitStorageInfo, experimentalTxStatus, experimentalValidatorsOrdered, experimentalViewAccessKey, experimentalViewAccessKeyList, experimentalViewAccount, experimentalViewCode, experimentalViewGasKey, experimentalViewGasKeyList, experimentalViewState, gasPrice, genesisConfig, health, lightClientProof, maintenanceWindows, networkInfo, nextLightClientBlock, query, sendTx, status, tx, validators, viewAccessKey, viewAccount, viewFunction };