UNPKG

@pokt-network/pocket-js

Version:

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

39 lines (38 loc) 851 B
/** * * * @class RelayMeta */ export declare class RelayMeta { /** * * Creates a RelayMeta object using a JSON string * @param {string} json - JSON string. * @returns {RelayMeta} - RelayMeta object. * @memberof RelayMeta */ static fromJSON(json: string): RelayMeta; readonly blockHeight: BigInt; /** * Relay Meta. * @constructor * @param {number} blockHeight - Block Height. */ constructor(blockHeight: BigInt); /** * * Creates a JSON object with the RelayMeta properties * @returns {JSON} - JSON Object. * @memberof RelayMeta */ toJSON(): { block_height: number; }; /** * * Check if the RelayMeta object is valid * @returns {boolean} - True or false. * @memberof RelayMeta */ isValid(): boolean; }