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

  • new TxInfo(height: number, txhash: string, raw_log: string, logs: undefined | TxLog[], gas_wanted: number, gas_used: number, tx: Tx, timestamp: string, code: number, info: string, events: Event[], codespace?: string, data?: 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

    • code: number

      error code

    • info: string

      additional tx information that can be indeterminisitc

    • events: Event[]

      events emitted during tx execution including ANTE and POST

    • Optional codespace: string

      0 if succeeded or non-zero error code

    • Optional data: string

      proto encoded data to HEX type of the Msg

    Returns TxInfo

Properties

code: number
codespace?: string
data?: string
events: Event[]
gas_used: number
gas_wanted: number
height: number
info: string
logs: undefined | TxLog[]
raw_log: string
timestamp: string
tx: Tx
txhash: string

Methods

  • fromProto(proto: TxResponse): TxInfo