@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
71 lines (70 loc) • 1.84 kB
TypeScript
import { Transaction } from "../transaction";
/**
*
*
* @class QueryTXResponse
*/
export declare class QueryTXResponse {
/**
*
* Creates a QueryTXResponse object using a JSON string
* @param {String} json - JSON string.
* @returns {QueryTXResponse} - QueryTXResponse object.
* @memberof QueryTXResponse
*/
static fromJSON(json: string): QueryTXResponse;
readonly transaction: Transaction;
/**
* Query Transaction Response.
* @constructor
* @param {Transaction} transaction - Transaction object.
*/
constructor(transaction: Transaction);
/**
*
* Creates a JSON object with the QueryTXResponse properties
* @returns {JSON} - JSON Object.
* @memberof QueryTXResponse
*/
toJSON(): {
hash: string;
height: number;
index: number;
proof: {
data: string | null;
proof: {
aunts: import("../../..").Hex[] | null;
index: number;
leaf_hash: import("../../..").Hex | null;
total: number;
};
root_hash: string;
};
tx: string;
tx_result: {
code: number;
codespace: string;
data: string[];
log: string;
info: string;
recipient: string;
signer: string;
messageType: string;
events: object[];
};
stdTx: {
entropy: number;
fee: import("..").Fee;
memo: string;
msg: any;
signature: import("..").Signature;
};
};
/**
*
* Check if the QueryTXResponse object is valid
* @returns {boolean} - True or false.
* @memberof QueryTXResponse
*/
isValid(): boolean;
}