HeliumHotspot class

Detailed hotspot information.

This information is derived by the Helium API from a combination of blockchain transactions and P2P data. For example, the information about the hotspot's location is derived from assert_location_v1 and _v2 transactions, and the payer and blockAdded are derived from the add_gateway_v1 transaction. On the other hand, status is derived from P2P queries.

Annotations
  • @JsonSerializable()

Constructors

HeliumHotspot({required String address, required int block, required int blockAdded, required HeliumGeocode geocode, double? lat, double? lng, String? location, String? locationHex, required String name, required int nonce, num? speculativeNonce, required DateTime timestampAdded, double? rewardScale, required String? payer, required String owner, required HeliumHotspotMode mode, required HeliumHotspotStatus status, int? lastPoCChallenge, required int lastChangeBlock, required int gain, required int elevation})
Creates a new instance.
HeliumHotspot.fromJson(Map<String, dynamic> json)
Creates an instance from a map derived from the JSON serialization.
factory

Properties

address String
The B58 address of the hotspot.
final
block int
This seems to be the highest block known to the API; doesn't seem to have any relationship to the hotspot itself.
final
blockAdded int
The block where this hotspot was added to the blockchain.
final
elevation int
The antenna elevation above ground level in metres. This is the value from the most recent location assertion transaction.
final
gain int
The antenna gain in tenths of a dBi. This is the value from the most recent location assertion transaction.
final
geocode HeliumGeocode
The reverse geocode of the hotspot's location.
final
hashCode int
The hash code for this object.
no setterinherited
lastChangeBlock int
final
lastPoCChallenge int?
The block where this hotspot last issued a proof-of-coverage challenge.
final
lat double?
The latitude of this hotspot, in degrees. This is the value from the most recent location assertion transaction.
final
lng double?
The longitude of this hotspot, in degrees. This is the value from the most recent location assertion transaction.
final
location String?
The H3 index of the res 12 hex where the hotspot is located.
final
locationHex String?
The H3 index of the res 8 hex where the hotspot is located.
final
mode HeliumHotspotMode
The type of hotspot.
final
name String
The name 3-word animal name of the hotspot
final
nonce int
final
owner String
The wallet address of the hotspot's owner.
final
payer String?
The wallet address that paid for the transaction that added this hotspot to the blockchain.
final
rewardScale double?
The hotspot's PoC transmission reward scale.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speculativeNonce num?
The speculative nonce, only filled out when a single hotspot is requested by address.
final
status HeliumHotspotStatus
Operational status of this hotspot.
final
timestampAdded DateTime
The time of the block in blockAdded.
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