import { BlockTag, JsonRpcProvider, Network, Networkish, TransactionResponse } from '@ethersproject/providers'; import { SignedTransaction, Transaction } from 'near-api-js/lib/transaction'; import { RpcResponse, StatusRpcResponse, NearBlockWithChunk, NearChunkDetailsResponse, GetStateResponse, GetValidatorStatusResponse, GetNetworkInfoResponse, GetAccessKeyListResponse, GetAccessKeyResponse, GetContractCallResponse } from './responses'; export declare class RpcError extends Error { readonly type?: string; readonly code?: number; readonly data?: string; readonly cause?: { name: string; info: Record; }; constructor(error: RpcResponse['error']); } export declare class NearRpcProvider extends JsonRpcProvider { private _archivalUrl; constructor(_network?: Networkish); static defaultUrl(): string; static getBaseUrl(network?: Network | null): string; static getArchivalUrl(network?: Network | null): string; getNextId(): number; _uncachedDetectNetwork(): Promise; send(method: string, params: Record | any[]): Promise; private sendToArchivalNode; perform(method: string, params: Record): Promise; _getAddress(addressOrName: string | Promise): Promise; status(): Promise; getBlock(blockHashOrBlockTag: BlockTag | string | Promise): Promise; createTransaction({ signerId, publicKey, receiverId, nonce, actions, blockHash, }: Omit): Transaction; signTransaction(encodedKey: string, transaction: Transaction): Promise<[Uint8Array, SignedTransaction]>; signMessage(encodedKey: string, message: string, accountId: string): Promise; sendTransaction(signedTransaction: string | Promise): Promise; private _internalGetTransactionStatus; private _decodeTransaction; private _internalGetBalance; private _setParamsFinalityOrBlockId; getCode(addressOrName: string | Promise, blockTag: BlockTag | Promise): Promise; getBlockWithChunk(params: Record): Promise; getChunkDetails(params: Record): Promise; getContractState(addressOrName: string | Promise, blockTag: BlockTag | Promise): Promise; getValidatorStatus(blockHashOrBlockNumber: string[] | number[] | null[]): Promise; getNetworkInfo(): Promise; getAccessKeyList(addressOrName: string | Promise, blockTag: BlockTag | Promise): Promise; getAccessKey(addressOrName: string | Promise, publicKey: string, blockTag: BlockTag | Promise): Promise; contractCall(addressOrName: string | Promise, blockTag: BlockTag | Promise, methodName: string, argsBase64: string): Promise; } //# sourceMappingURL=near-rpc-provider.d.ts.map