UNPKG

@pokt-network/pocket-js

Version:

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

39 lines (38 loc) 967 B
/** * * * @class QueryHeightResponse */ export declare class QueryHeightResponse { /** * * Creates a QueryHeightResponse object using a JSON string * @param {String} json - JSON string. * @returns {QueryHeightResponse} - QueryHeightResponse object. * @memberof QueryHeightResponse */ static fromJSON(json: string): QueryHeightResponse; readonly height: BigInt; /** * Query Height Response. * @constructor * @param {Bigint} height - Current network block height. */ constructor(height: BigInt); /** * * Creates a JSON object with the QueryHeightResponse properties * @returns {JSON} - JSON Object. * @memberof QueryHeightResponse */ toJSON(): { height: number; }; /** * * Check if the QueryHeightResponse object is valid * @returns {boolean} - True or false. * @memberof QueryHeightResponse */ isValid(): boolean; }