UNPKG

@pokt-network/pocket-js

Version:

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

39 lines (38 loc) 976 B
/** * * * @class QueryBalanceResponse */ export declare class QueryBalanceResponse { /** * * Creates a QueryBalanceResponse object using a JSON string * @param {String} json - JSON string. * @returns {QueryBalanceResponse} - QueryBalanceResponse object. * @memberof QueryBalanceResponse */ static fromJSON(json: string): QueryBalanceResponse; readonly balance: BigInt; /** * Relay Response. * @constructor * @param {Bigint} balance - Current network block balance. */ constructor(balance: BigInt); /** * * Creates a JSON object with the QueryBalanceResponse properties * @returns {JSON} - JSON Object. * @memberof QueryBalanceResponse */ toJSON(): { balance: number; }; /** * * Check if the QueryBalanceResponse object is valid * @returns {boolean} - True or false. * @memberof QueryBalanceResponse */ isValid(): boolean; }