@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
58 lines (57 loc) • 1.35 kB
TypeScript
export declare type Fee = {
amount: string;
denom: string;
};
export declare type Signature = {
pub_key: string;
signature: string;
};
/**
*
*
* @class StdTxModel
*/
export declare class StdTxModel {
/**
*
* Creates a StdTxModel object using a JSON string
* @param {string} json - JSON string.
* @returns {StdTxModel} - StdTxModel object.
* @memberof StdTxModel
*/
static fromJSON(json: string): StdTxModel;
readonly entropy: number;
readonly fee: Fee;
readonly memo: string;
readonly msg: any;
readonly signature: Signature;
/**
* StdTxModel.
* @constructor
* @param {number} entropy - Entropy.
* @param {Fee} fee - Fee.
* @param {Msg} msg - Msg.
* @param {Signature} signature - signature.
*/
constructor(entropy: number, fee: Fee, memo: string, msg: any, signature: Signature);
/**
*
* Creates a JSON object with the StdTxModel properties
* @returns {JSON} - JSON Object.
* @memberof StdTxModel
*/
toJSON(): {
entropy: number;
fee: Fee;
memo: string;
msg: any;
signature: Signature;
};
/**
*
* Check if the StdTxModel object is valid
* @returns {boolean} - True or false.
* @memberof StdTxModel
*/
isValid(): boolean;
}