HeliumTransactionUnknown class

Represents a transaction of an unknown type.

Not all documented transaction types have been implemented by this library, and even when this library does implement all documented transaction types, new ones can be added to the blockchain. This library won't throw an error when it encounters an unknown transaction type; instead, it returns an instance of this class.

Inheritance

Constructors

HeliumTransactionUnknown({required HeliumTransactionType type, required String hash, required int height, required DateTime time, required Map<String, dynamic> data})
Creates a new instance.
HeliumTransactionUnknown.fromJson(Map<String, dynamic> json)
Creates an instance from a map derived from the JSON serialization.
factory

Properties

data Map<String, dynamic>
The other fields in the transaction record.
final
hash String
The transaction hash.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height int
The block containing the transaction.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time DateTime
The transaction time.
finalinherited
type HeliumTransactionType
The type of transaction.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Creates a map suitable for serialization to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

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