Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Constructors

constructor

  • new TxInfo(height: number, txhash: string, raw_log: string, logs: TxLog[], gas_wanted: number, gas_used: number, tx: StdTx, timestamp: string, events: Event[]): 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: TxLog[]

      log information

    • gas_wanted: number

      gas limited submitted in fee

    • gas_used: number

      actual gas consumption

    • tx: StdTx

      transaction content

    • timestamp: string

      time of inclusion

    • events: Event[]

      events

    Returns TxInfo

Properties

events

events: Event[]

events

gas_used

gas_used: number

actual gas consumption

gas_wanted

gas_wanted: number

gas limited submitted in fee

height

height: number

height of the block in which the transaction was included.

logs

logs: TxLog[]

log information

raw_log

raw_log: string

raw log information, as a string.

timestamp

timestamp: string

time of inclusion

tx

tx: StdTx

transaction content

txhash

txhash: string

transaction's hash.

Methods

toData

toJSON

  • toJSON(): string

Static fromData

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Static property
  • Static method
  • Property

Generated using TypeDoc