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.29 kB
import { Transaction } from "../transaction"; /** * * * @class QueryBlockTxsResponse */ export declare class QueryBlockTxsResponse { /** * * Creates a QueryBlockTxsResponse object using a JSON string * @param {String} json - JSON string. * @returns {QueryBlockTxsResponse} - QueryBlockTxsResponse object. * @memberof QueryBlockTxsResponse */ static fromJSON(json: string): QueryBlockTxsResponse; readonly transactions: Transaction[]; readonly totalCount: number; readonly pageCount: number; /** * Query block transactions 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 QueryBlockTxsResponse properties * @returns {JSON} - JSON Object. * @memberof QueryBlockTxsResponse */ toJSON(): { txs: {}[]; total_count: number; page_count: number; }; /** * * Check if the QueryBlockTxsResponse object is valid * @returns {boolean} - True or false. * @memberof QueryBlockTxsResponse */ isValid(): boolean; }