UNPKG

@pokt-network/pocket-js

Version:

Pocket-js core package with the main functionalities to interact with the Pocket Network.

43 lines (42 loc) 1.25 kB
import { PocketParams } from "../pocket-params"; /** * * * @class QueryPocketParamsResponse */ export declare class QueryPocketParamsResponse { /** * * Creates a QueryPocketParamsResponse object using a JSON string * @param {String} json - JSON string. * @returns {QueryPocketParamsResponse} - QueryPocketParamsResponse object. * @memberof QueryPocketParamsResponse */ static fromJSON(json: string): QueryPocketParamsResponse; readonly pocketParams: PocketParams; /** * QueryPocketParamsResponse * @constructor * @param {PocketParams} applicationParams - Application params. */ constructor(pocketParams: PocketParams); /** * * Creates a JSON object with the QueryPocketParamsResponse properties * @returns {JSON} - JSON Object. * @memberof QueryPocketParamsResponse */ toJSON(): { claim_expiration: number; proof_waiting_period: number; session_node_count: number; supported_blockchains: string[] | null; }; /** * * Check if the QueryPocketParamsResponse object is valid * @returns {boolean} - True or false. * @memberof QueryPocketParamsResponse */ isValid(): boolean; }