ITransaction

It is predefined interface containing transaction data.

FieldDescription

transaction_hash

Hash of the block in which this transaction was located.

transaction_nonce

Number of transactions made by the sender prior to this one.

transaction_index

The transaction's index position in the block.

transaction_from_address

Address of the sender.

transaction_to_address

Address of the receiver.

transaction_value

Value transferred in Wei.

transaction_gas

Quantity of gas units provided by the sender.

transaction_gas_price

Price per gas unit provided by the sender in Wei.

transaction_input

Data sent along with the transaction, with a maximum size of 32 bytes.

transaction_receipt_cumulative_gas_used

Gas used by this and all preceding transactions in the block.

transaction_receipt_gas_used

Gas used by this transaction alone.

transaction_receipt_status

Either 1 (success) or 0 (failure).

receipt_effective_gas_price

Actual value per gas deducted from the sender's account.

logs

logs.

export interface ITransaction {
  transaction_hash: string;
  transaction_nonce: string;
  transaction_index: string;
  transaction_from_address: string;
  transaction_to_address: string;
  transaction_value: string;
  transaction_gas: string;
  transaction_gas_price: string;
  transaction_input: string;
  transaction_receipt_cumulative_gas_used: string;
  transaction_receipt_gas_used: string;
  transaction_receipt_status: string;
  receipt_effective_gas_price: string;
  logs: ILog[]
}