@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
42 lines (41 loc) • 976 B
TypeScript
/**
*
*
* @class PartSetHeader
*/
export declare class PartSetHeader {
/**
*
* Creates a PartSetHeader object using a JSON string
* @param {String} json - JSON string.
* @returns {PartSetHeader} - PartSetHeader object.
* @memberof PartSetHeader
*/
static fromJSON(json: string): PartSetHeader;
readonly total: BigInt;
readonly hash: string;
/**
* PartSetHeader.
* @constructor
* @param {BigInt} total - Total count.
* @param {string} hash - Part hash.
*/
constructor(total: BigInt, hash: string);
/**
*
* Creates a JSON object with the PartSetHeader properties
* @returns {JSON} - JSON Object.
* @memberof PartSetHeader
*/
toJSON(): {
hash: string;
total: number;
};
/**
*
* Check if the PartSetHeader object is valid
* @returns {boolean} - True or false.
* @memberof PartSetHeader
*/
isValid(): boolean;
}