# 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

- Defined in decoder/lib/types.ts:229

#####
Index

### Properties

blockHash?
blockNumber
from?
gas?
gasPrice?
hash?
input
maxFeePerGas?
maxPriorityFeePerGas?
nonce?
to
transactionIndex?
type?
value?

## Properties

### `Optional` blockHash

blockHash?: string

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

- Defined in decoder/lib/types.ts:241

### blockNumber

blockNumber: number

This transaction's block number; null if pending.

- Defined in decoder/lib/types.ts:245

### `Optional` from

from?: string

Address of the sender (as checksummed hex string).

- Defined in decoder/lib/types.ts:253

### `Optional` gas

gas?: string

Gas provided by the sender, as numeric string.

- Defined in decoder/lib/types.ts:270

### `Optional` gasPrice

gasPrice?: string

Gas price for this transaction, as numeric string.

- Defined in decoder/lib/types.ts:266

### `Optional` hash

hash?: string

The transaction hash as hex string.

- Defined in decoder/lib/types.ts:233

### input

input: string

Data sent with the transaction, as hex string.

- Defined in decoder/lib/types.ts:274

### `Optional` maxFeePerGas

maxFeePerGas?: string

The maximum fee per gas that the transaction is willing to pay in total.

- Defined in decoder/lib/types.ts:282

### `Optional` maxPriorityFeePerGas

maxPriorityFeePerGas?: string

The maximum fee per gas to give miners to incentivize them to include the transaction (Priority fee).

- Defined in decoder/lib/types.ts:286

### `Optional` nonce

nonce?: number

The nonce of the sender before this transaction was sent.

- Defined in decoder/lib/types.ts:237

### to

to: string

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

- Defined in decoder/lib/types.ts:258

### `Optional` transactionIndex

transactionIndex?: number

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

- Defined in decoder/lib/types.ts:249

### `Optional` type

type?: number

A positive unsigned 8-bit number between 0 and 0x7f that represents the type of the transaction.

- Defined in decoder/lib/types.ts:278

### `Optional` value

value?: string

Wei sent with this transaction, as numeric string.

- Defined in decoder/lib/types.ts:262

Generated using TypeDoc