HeliumTransaction class abstract

A transaction on the Helium blockchain.

This class is never instantiated directly; instead, it absctracts the common fields across all transactions. It also provides support for deserializing transactions from JSON by dispatching to the appropriate sub-class based on the type of the transaction, see HeliumTransaction.fromJson.

Implementers

Constructors

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

Properties

hash String
The transaction hash.
final
hashCode int
The hash code for this object.
no setterinherited
height int
The block containing the transaction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time DateTime
The transaction time.
final
type HeliumTransactionType
The type of transaction.
final

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.
toString() String
A string representation of this object.
inherited

Operators

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