HeliumTransactionAssertLocationV2 class
The assert_location_v2 transaction.
- Inheritance
-
- Object
- HeliumTransaction
- HeliumTransactionAssertLocationV1
- HeliumTransactionAssertLocationV2
- Annotations
-
- @JsonSerializable()
Constructors
- HeliumTransactionAssertLocationV2({required HeliumTransactionType type, required String hash, required int height, required DateTime time, required int fee, required int stakingFee, required String gateway, required String owner, required String payer, required String location, required double lat, required double lng, required int nonce, required int elevation, required int gain})
- Creates a new instance.
-
HeliumTransactionAssertLocationV2.fromJson(Map<
String, dynamic> json) -
Creates an instance from a map derived from the JSON serialization.
factory
Properties
- elevation → int
-
The antenna elevation above ground level in metres.
final
- fee → int
-
The transaction fee, in DC.
finalinherited
- gain → int
-
The antenna gain in tenths of a dBi.
final
- gateway → String
-
The address of the gateway to add.
This is the address used in the Hotspots API.
finalinherited
- hash → String
-
The transaction hash.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
The block containing the transaction.
finalinherited
- lat → double
-
The latitude in degrees.
finalinherited
- lng → double
-
The longitude in degrees.
finalinherited
- location → String
-
The H3 index of the asserted location.
finalinherited
- nonce → int
-
finalinherited
- owner → String
-
The wallet address of the gateway owner.
finalinherited
- payer → String
-
The wallet address of the fee payer.
For the first location assertion, this will be the address of the hotspot
maker's wallet since they pay the initial hotspot fees. Subsequent
location assertions will be from a different wallet.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stakingFee → int
-
The fee, in DC, to add the gateway.
See: https://docs.helium.com/blockchain/transaction-fees/
finalinherited
- 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