TransactionInfo class

Represents information about an Ethereum transaction.

Constructors

TransactionInfo({required List<AccessListEntry> accessList, required String blockHash, required int blockNumber, required BigInt? chainId, required String from, required int gas, required int? gasPrice, required String hash, required String input, required int? maxFeePerGas, required int? maxPriorityFeePerGas, required int nonce, required String r, required String s, required String? to, required int transactionIndex, required int type, required int v, required BigInt value, required int? yParity})
Creates a new instance of the TransactionInfo class.
const
TransactionInfo.fromJson(Map<String, dynamic> json)
Creates a TransactionInfo instance from a JSON map.
factory

Properties

accessList List<AccessListEntry>
The list of access list entries for the transaction.
final
blockHash String
The hash of the block where the transaction was included.
final
blockNumber int
The block number where the transaction was included.
final
chainId BigInt?
The chain ID of the blockchain.
final
from String
The sender's address.
final
gas int
The gas limit for the transaction.
final
gasPrice int?
The gas price for the transaction.
final
hash String
The transaction hash.
final
hashCode int
The hash code for this object.
no setterinherited
input String
The transaction input data.
final
maxFeePerGas int?
The maximum fee per gas unit that the sender is willing to pay.
final
maxPriorityFeePerGas int?
The maximum priority fee per gas unit that the sender is willing to pay.
final
nonce int
The transaction nonce.
final
r String
The ECDSA signature component 'r'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s String
The ECDSA signature component 's'.
final
to String?
The recipient's address, if applicable.
final
transactionIndex int
The index of the transaction within the block.
final
type int
The transaction type.
final
v int
The ECDSA signature component 'v'.
final
value BigInt
The value sent with the transaction.
final
yParity int?
Parity of the 'y' coordinate of the sender's public key.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSignature() → ETHSignature
toString() String
Returns a string representation of the TransactionInfo object.
override
toTransaction() ETHTransaction

Operators

operator ==(Object other) bool
The equality operator.
inherited