@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
37 lines (36 loc) • 1.41 kB
TypeScript
import { TxLog } from "./tx-log";
/**
* Represents a /v1/rawtx RPC response
*/
export declare class RawTxResponse {
/**
* Construct this model from it's JSON representation
* @param jsonStr {string}
* @returns {RawTxResponse | Error}
*/
static fromJSON(jsonStr: string): RawTxResponse | Error;
readonly height: BigInt;
readonly hash: string;
readonly code?: BigInt;
readonly data?: string;
readonly rawLog?: string;
readonly logs?: TxLog[];
readonly info?: string;
readonly codeSpace?: string;
readonly tx?: string;
readonly timestamp?: string;
/**
* Constructor for this class
* @param {BigInt} height - The height for this Transaction
* @param {string} hash - The transaction hash in hex format
* @param {BigInt} code - The code for this tx
* @param {string} data - Data hex for this tranaction
* @param {string} rawLog - Dumped logs in string format
* @param {TxLog[]} logs - Logs for this transaction
* @param {string} info - Raw tx information.
* @param {string} codeSpace - Code space string.
* @param {string} tx - Transaction string.
* @param {string} timestamp - Transaction timestamp.
*/
constructor(height: BigInt, hash: string, code?: BigInt, data?: string, rawLog?: string, logs?: TxLog[], info?: string, codeSpace?: string, tx?: string, timestamp?: string);
}