UNPKG

@pokt-network/pocket-js

Version:

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

54 lines (53 loc) 1.57 kB
/** * * * @class NodeReceipt */ export declare class NodeReceipt { /** * * Creates a NodeReceipt object using a JSON string * @param {String} json - JSON string. * @returns {NodeReceipt} - NodeReceipt object. * @memberof NodeReceipt */ static fromJSON(json: string): NodeReceipt; readonly address: string; readonly blockchain: string; readonly appPubKey: string; readonly sessionBlockHeight: BigInt; readonly height: BigInt; readonly receiptType: string; /** * Node Receipt. * @constructor * @param {string} address - Node address. * @param {string} blockchain - Blockchain hash. * @param {string} appPubKey - Application Key associated with a client. * @param {BigInt} sessionBlockHeight - Session Block Height. * @param {BigInt} height - Current height. * @param {string} receiptType - Receipt type. */ constructor(address: string, blockchain: string, appPubKey: string, sessionBlockHeight: BigInt, height: BigInt, receiptType: string); /** * * Creates a JSON object with the NodeReceipt properties * @returns {JSON} - JSON Object. * @memberof NodeReceipt */ toJSON(): { address: string; app_pubkey: string; blockchain: string; height: number; session_block_height: number; receipt_type: string; }; /** * * Check if the NodeReceipt object is valid * @returns {boolean} - True or false. * @memberof NodeReceipt */ isValid(): boolean; }