@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
42 lines (41 loc) • 1.07 kB
TypeScript
import { SessionHeader } from "./session-header";
/**
*
*
* @class DispatchRequest
*/
export declare class DispatchRequest {
/**
*
* Creates a DispatchRequest object using a JSON string
* @param {String} json - JSON string.
* @returns {DispatchRequest} - DispatchRequest object.
* @memberof DispatchRequest
*/
static fromJSON(json: string): DispatchRequest;
readonly sessionHeader: SessionHeader;
/**
* Dispatch Request.
* @constructor
* @param {SessionHeader} sessionHeader - Session header object.
*/
constructor(sessionHeader: SessionHeader);
/**
*
* Creates a JSON object with the DispatchRequest properties
* @returns {JSON} - JSON Object.
* @memberof DispatchRequest
*/
toJSON(): {
app_public_key: string;
chain: string;
session_height: number;
};
/**
*
* Check if the DispatchRequest object is valid
* @returns {boolean} - True or false.
* @memberof DispatchRequest
*/
isValid(): boolean;
}