@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
39 lines (38 loc) • 927 B
TypeScript
/**
*
*
* @class ChallengeResponse
*/
export declare class ChallengeResponse {
/**
*
* Creates a RelayMeta object using a JSON string
* @param {string} json - JSON string.
* @returns {ChallengeResponse} - ChallengeResponse object.
* @memberof ChallengeResponse
*/
static fromJSON(json: string): ChallengeResponse;
readonly response: string;
/**
* Challenge Response.
* @constructor
* @param {string} response - response json.
*/
constructor(response: string);
/**
*
* Creates a JSON object with the ChallengeResponse properties
* @returns {JSON} - JSON Object.
* @memberof ChallengeResponse
*/
toJSON(): {
response: string;
};
/**
*
* Check if the ChallengeResponse object is valid
* @returns {boolean} - True or false.
* @memberof ChallengeResponse
*/
isValid(): boolean;
}