@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
46 lines (45 loc) • 1.23 kB
TypeScript
/**
*
*
* @class QueryAccountResponse
*/
export declare class QueryAccountResponse {
/**
*
* Creates a QueryAccountResponse object using a JSON string
* @param {String} json - JSON string.
* @returns {QueryAccountResponse} - QueryAccountResponse object.
* @memberof QueryAccountResponse
*/
static fromJSON(json: string): QueryAccountResponse;
readonly address: string | null;
readonly balance: string | null;
readonly publicKey: string | null;
/**
* Query Account Response.
* @constructor
* @param {object} account - Current account object.
*/
constructor(address: string, balance: string, publicKey: string);
/**
*
* Creates a JSON object with the QueryAccountResponse properties
* @returns {JSON} - JSON Object.
* @memberof QueryAccountResponse
*/
toJSON(): {
address: string | null;
coins: {
amount: string | null;
denom: string;
}[];
public_key: string | null;
};
/**
*
* Check if the QueryAccountResponse object is valid
* @returns {boolean} - True or false.
* @memberof QueryAccountResponse
*/
isValid(): boolean;
}