UNPKG

@pokt-network/pocket-js

Version:

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

40 lines (39 loc) 1.12 kB
import { StoredReceipt } from "../stored-receipt"; /** * * * @class QueryNodeReceiptResponse */ export declare class QueryNodeReceiptResponse { /** * * Creates a QueryNodeReceiptResponse object using a JSON string * @param {String} json - JSON string. * @returns {QueryNodeReceiptResponse} - QueryNodeReceiptResponse object. * @memberof QueryNodeReceiptResponse */ static fromJSON(json: string): QueryNodeReceiptResponse; readonly nodeReceipt: StoredReceipt; /** * QueryNodeReceiptResponse. * @constructor * @param {StoredReceipt} nodeReceipt - Amount staked by the node. */ constructor(nodeReceipt: StoredReceipt); /** * * Creates a JSON object with the QueryNodeReceiptResponse properties * @returns {JSON} - JSON Object. * @memberof QueryNodeReceiptResponse */ toJSON(): { servicer_address: string; session_header: { app_public_key: string; chain: string; session_height: number; }; total_relays: number; evidence_type: number; }; }