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.13 kB
import { Node } from "../"; /** * * * @class QueryNodeResponse */ export declare class QueryNodeResponse { /** * * Creates a QueryNodeResponse object using a JSON string * @param {String} json - JSON string. * @returns {QueryNodeResponse} - QueryNodeResponse object. * @memberof QueryNodeResponse */ static fromJSON(json: string): QueryNodeResponse; readonly node: Node; /** * Node Response. * @constructor * @param {Node} node - Node object. */ constructor(node: Node); /** * * Creates a JSON object with the QueryNodeResponse properties * @returns {JSON} - JSON Object. * @memberof QueryNodeResponse */ toJSON(): { address: string; chains: string[]; public_key: string; jailed: boolean; service_url: URL; status: string; tokens: number; unstaking_time: string | undefined; }; /** * * Check if the QueryNodeResponse object is valid * @returns {boolean} - True or false. * @memberof QueryNodeResponse */ isValid(): boolean; }