import { NodeStatusInfo, PublicProvider, ReadSCData, ReadSCParams } from '..'; import { EventFilter, ExecuteSCReadOnlyParams, ExecuteSCReadOnlyResult, Network, PublicAPI } from '../..'; import { rpcTypes as t } from '../../generated'; import { OperationStatus } from '../../operation'; import { U64_t } from '../../basicElements/serializers/number/u64'; export declare class JsonRpcPublicProvider implements PublicProvider { client: PublicAPI; constructor(client: PublicAPI); static fromRPCUrl(url: string): JsonRpcPublicProvider; static mainnet(): JsonRpcPublicProvider; static buildnet(): JsonRpcPublicProvider; balanceOf(addresses: string[], final?: boolean): Promise<{ address: string; balance: bigint; }[]>; networkInfos(): Promise; getOperationStatus(opId: string): Promise; getEvents(filter: EventFilter): Promise; getNodeStatus(): Promise; /** * Reads smart contract function. * @param params - readSCParams. * @returns A promise that resolves to a ReadSCData. * * @remarks Be a aware that if you don't provide a caller address, it will generate a random one. */ readSC(params: ReadSCParams): Promise; getStorageKeys(address: string, filter?: Uint8Array | string, final?: boolean): Promise; /** * Wrapper for getAddressesDatastoreKeys that handles pagination to fetch all datastore keys. * @param address - The address to get datastore keys for * @param filter - Optional prefix filter for keys * @param final - Whether to get final or candidate keys * @returns Promise resolving to all datastore keys for the address */ private getAllDatastoreKeys; readStorage(address: string, keys: Uint8Array[] | string[], final?: boolean): Promise<(Uint8Array | null)[]>; /** * Returns the gas estimation for a given function. * * @remarks To avoid running out of gas, the gas estimation is increased by 20%. * * @param params - ReadSCParams. caller must be provided * @throws If the read operation returns an error. * @returns The gas estimation for the operation execution. */ getGasEstimation(params: ReadSCParams): Promise; executeSCReadOnly(params: ExecuteSCReadOnlyParams): Promise; executeSCGasEstimation(params: ExecuteSCReadOnlyParams): Promise; }