TransactionReceipt class

Represents the receipt of an Ethereum transaction.

Constructors

TransactionReceipt({required String? blockHash, required int? blockNumber, String? contractAddress, required int? cumulativeGasUsed, required int? effectiveGasPrice, required String from, required int? gasUsed, required String logsBloom, required bool? status, required String? to, required String transactionHash, required int? transactionIndex, required int type, required List<LogEntry> logs})
Creates a new instance of the TransactionReceipt class.
const
TransactionReceipt.fromJson(Map<String, dynamic> json)
Creates a TransactionReceipt instance from a JSON map.
factory

Properties

blockHash String?
The hash of the block where the transaction was included.
final
blockNumber int?
The block number where the transaction was included.
final
contractAddress String?
The address of the contract created, if applicable.
final
cumulativeGasUsed int?
The total gas used in the block, including gas used by other transactions.
final
effectiveGasPrice int?
The effective gas price of the transaction.
final
from String
The sender's address.
final
gasUsed int?
The gas used by this specific transaction.
final
hashCode int
The hash code for this object.
no setterinherited
logs List<LogEntry>
The list of log entries generated by the transaction.
final
logsBloom String
A bloom filter for the logs of the transaction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status bool?
The status of the transaction.
final
to String?
The recipient's address, if it's a contract creation.
final
transactionHash String
The hash of the transaction.
final
transactionIndex int?
The index of the transaction within the block.
final
type int
The transaction type.
final

Methods

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

Operators

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