Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TxInfo

A TxInfo data structure is used to capture information from a transaction lookup for a transaction already included in a block

Hierarchy

  • TxInfo

Index

Constructors

constructor

  • new TxInfo(height: number, txhash: string, raw_log: string, logs: undefined | TxLog[], gas_wanted: number, gas_used: number, tx: Tx, timestamp: string, code?: number, codespace?: string): TxInfo
  • Parameters

    • height: number

      height of the block in which the transaction was included.

    • txhash: string

      transaction's hash.

    • raw_log: string

      raw log information, as a string.

    • logs: undefined | TxLog[]

      log information

    • gas_wanted: number

      gas limited submitted in fee

    • gas_used: number

      actual gas consumption

    • tx: Tx

      transaction content

    • timestamp: string

      time of inclusion

    • Optional code: number

      error code

    • Optional codespace: string

    Returns TxInfo

Properties

Optional code

code?: number

Optional codespace

codespace?: string

gas_used

gas_used: number

gas_wanted

gas_wanted: number

height

height: number

logs

logs: undefined | TxLog[]

raw_log

raw_log: string

timestamp

timestamp: string

tx

tx: Tx

txhash

txhash: string

Methods

Static fromData

Static fromProto

  • fromProto(proto: TxResponse): TxInfo