UNPKG

@pokt-network/pocket-js

Version:

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

47 lines (46 loc) 1.22 kB
import { Application } from "../application"; /** * * * @class QueryAppResponse */ export declare class QueryAppResponse { /** * * Creates a QueryAppResponse object using a JSON string * @param {String} json - JSON string. * @returns {QueryAppResponse} - QueryAppResponse object. * @memberof QueryAppResponse */ static fromJSON(json: string): QueryAppResponse; readonly application: Application; /** * Query app Response. * @constructor * @param {Application} application - Application object. */ constructor(application: Application); /** * * Creates a JSON object with the QueryAppResponse properties * @returns {JSON} - JSON Object. * @memberof QueryAppResponse */ toJSON(): { address: string; chains: string[]; public_key: string; jailed: boolean; max_relays: number; status: import("..").StakingStatus; staked_tokens: number; unstaking_time: string | undefined; }; /** * * Check if the QueryAppResponse object is valid * @returns {boolean} - True or false. * @memberof QueryAppResponse */ isValid(): boolean; }