HeliumHotspotReward class

A reward earned by a hotspot as it mines HNT by participating in Proof of Coverage and forwards Data Packets.

Annotations
  • @JsonSerializable()

Constructors

HeliumHotspotReward({required String account, required String gateway, required int amount, required int block, required String hash, required DateTime timestamp})
Creates a new instance.
HeliumHotspotReward.fromJson(Map<String, dynamic> json)
Creates an instance from a map derived from the JSON serialization.
factory

Properties

account String
The address of the account to which the reward was paid.
final
amount int
The amount of rewards earned, in bones (1 HNT == 100 000 000 bones)
final
block int
The block of the transaction containing this reward.
final
gateway String
The B58 address of the hotspot that earned the reward.
final
hash String
The hash of the mining rewards transaction containing this reward.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
The timestamp of the block containing the rewards 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