@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
44 lines (43 loc) • 1.22 kB
TypeScript
import { MsgClaim } from "./msg-claim";
/**
*
*
* @class QueryNodeClaimsResponse
*/
export declare class QueryNodeClaimsResponse {
/**
*
* Creates a QueryNodeClaimsResponse object using a JSON string
* @param {String} json - JSON string.
* @returns {QueryNodeClaimsResponse} - QueryNodeClaimsResponse object.
* @memberof QueryNodeClaimsResponse
*/
static fromJSON(json: string): QueryNodeClaimsResponse;
readonly msgClaims: MsgClaim[];
readonly page: number;
readonly totalPages: number;
/**
* Query Node Claims Response.
* @constructor
* @param {MsgClaim[]} msgClaims - Stored receipt object.
*/
constructor(msgClaims: MsgClaim[], page: number, totalPages: number);
/**
*
* Creates a JSON object with the QueryNodeClaimsResponse properties
* @returns {JSON} - JSON Object.
* @memberof QueryNodeClaimsResponse
*/
toJSON(): {
page: number;
total_pages: number;
result: object[];
};
/**
*
* Check if the QueryNodeClaimsResponse object is valid
* @returns {boolean} - True or false.
* @memberof QueryNodeClaimsResponse
*/
isValid(): boolean;
}