UNPKG

@pokt-network/pocket-js

Version:

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

44 lines (43 loc) 1.28 kB
import { StoredReceipt } from "../stored-receipt"; /** * * * @class QueryNodeReceiptsResponse */ export declare class QueryNodeReceiptsResponse { /** * * Creates a QueryNodeReceiptsResponse object using a JSON string * @param {String} json - JSON string. * @returns {QueryNodeReceiptsResponse} - QueryNodeReceiptsResponse object. * @memberof QueryNodeReceiptsResponse */ static fromJSON(json: any): QueryNodeReceiptsResponse; readonly storedReceipts: StoredReceipt[]; readonly page: number; readonly totalPages: number; /** * QueryNodeReceiptsResponse. * @constructor * @param {StoredReceipt[]} storedReceipts - Stored receipts array. */ constructor(storedReceipts: StoredReceipt[], page: number, totalPages: number); /** * * Creates a JSON object with the QueryNodeReceiptsResponse properties * @returns {JSON} - JSON Object. * @memberof QueryNodeReceiptsResponse */ toJSON(): { result: object[]; page: number; total_pages: number; }; /** * * Check if the QueryNodeReceiptsResponse object is valid * @returns {boolean} - True or false. * @memberof QueryNodeReceiptsResponse */ isValid(): boolean; }