Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Transaction

Contains information about a transaction. Most of the fields have been made optional; only those needed by the decoder have been made mandatory.

Intended to work like Web3's Transaction type.

Hierarchy

  • Transaction

Index

Properties

Optional blockHash

blockHash: string | null

Hash of this transaction's block as hex string; null if pending.

blockNumber

blockNumber: number | null

This transaction's block number; null if pending.

Optional from

from: string

Address of the sender (as checksummed hex string).

Optional gas

gas: string

Gas provided by the sender, as numeric string.

Optional gasPrice

gasPrice: string

Gas price for this transaction, as numeric string.

Optional hash

hash: string

The transaction hash as hex string.

input

input: string

Data sent with the transaction, as hex string.

Optional nonce

nonce: number

The nonce of the sender before this transaction was sent.

to

to: string | null

Address of the recipient (as checksummed hex string), or null for a contract creation.

Optional transactionIndex

transactionIndex: number | null

Index of transaction in block; null if block is pending.

Optional value

value: string

Wei sent with this transaction, as numeric string.

Generated using TypeDoc