UNPKG

@pokt-network/pocket-js

Version:

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

45 lines (44 loc) 1.32 kB
import { Transaction } from "../transaction"; /** * * * @class QueryAccountTxsResponse */ export declare class QueryAccountTxsResponse { /** * * Creates a QueryAccountTxsResponse object using a JSON string * @param {String} json - JSON string. * @returns {QueryAccountTxsResponse} - QueryAccountTxsResponse object. * @memberof QueryAccountTxsResponse */ static fromJSON(json: string): QueryAccountTxsResponse; readonly transactions: Transaction[]; readonly totalCount: number; readonly pageCount: number; /** * Query Account transaction list Response. * @constructor * @param {Transaction[]} transactions - List of transactions. * @param {number} totalCount - Transaction count */ constructor(transactions: Transaction[], totalCount: number, pageCount: number); /** * * Creates a JSON object with the QueryAccountTxsResponse properties * @returns {JSON} - JSON Object. * @memberof QueryAccountTxsResponse */ toJSON(): { txs: object[]; total_count: number; page_count: number; }; /** * * Check if the QueryAccountTxsResponse object is valid * @returns {boolean} - True or false. * @memberof QueryAccountTxsResponse */ isValid(): boolean; }