HeliumPoCWitness class
Represents the witnesses of the Proof of Coverage beacon. It is part of a poc_receipts_v1 transaction.
- Annotations
-
- @JsonSerializable()
Constructors
- HeliumPoCWitness({required int timestamp, required String gateway, required String owner, required int signal, double? snr, required String location, required String locationHex, required String packetHash, bool? isValid, String? invalidReason, double? frequency, String? datarate, int? channel})
- Creates a new instance.
-
HeliumPoCWitness.fromJson(Map<
String, dynamic> json) -
Creates an instance from a map derived from the JSON serialization.
factory
Properties
- channel → int?
-
The channel on which the signal was received.
final
- datarate → String?
-
The data rate at which the signal was received.
final
- frequency → double?
-
The frequency of the received signal, in MHz.
final
- gateway → String
-
The B58 address of the hotspot that witnessed the beacon.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidReason → String?
-
Text describing why the witnessed signal is invalid; null if it
was valid.
final
- isValid → bool?
-
True if the witnessed signal is valid; false otherwise.
final
- location → String
-
The H3 index of the res 12 hex of the witness.
final
- locationHex → String
-
The H3 index of the res 8 hex of the witness.
final
- owner → String
-
The wallet address of the owner of the witness.
final
- packetHash → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signal → int
-
The signal strength in dBm.
final
- snr → double?
-
The signal to noise ratio in dB.
final
- timestamp → int
-
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