LogEntry class
Represents an entry in Ethereum transaction logs.
Constructors
-
LogEntry({required String address, required String blockHash, required int blockNumber, required String data, required int logIndex, required bool removed, required List<
String> topics, required String transactionHash, required int transactionIndex}) -
Creates a new instance of the LogEntry class.
const
-
LogEntry.fromJson(Map<
String, dynamic> json) -
Creates a LogEntry instance from a JSON map.
factory
Properties
- address → String
-
The address of the contract that emitted the log.
final
- blockHash → String
-
The hash of the block where the log was included.
final
- blockNumber → int
-
The block number where the log was included.
final
- data → String
-
The data associated with the log entry.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logIndex → int
-
The index of the log within the block.
final
- removed → bool
-
Indicates whether the log entry has been removed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
topics
→ List<
String> -
The list of topics associated with the log entry.
final
- transactionHash → String
-
The hash of the transaction that triggered the log entry.
final
- transactionIndex → int
-
The index of the transaction within the block.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited