HeliumHotspotClient class
Operations on the Hotspots API.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findByName(
String query) → Future< HeliumResponse< List< >HeliumHotspot> > -
Fetches the hotspots which mach a search term in the
query
parameter. -
get(
String address) → Future< HeliumResponse< HeliumHotspot> > - Fetches the hotspot with the given address.
-
getActivity(
String address, {Set< HeliumTransactionType> filterTypes = const {}}) → Future<HeliumPagedResponse< List< >HeliumTransaction> > - Lists all blockchain transactions in which the given hotspot was involved.
-
getActivityCounts(
String address, {Set< HeliumTransactionType> filterTypes = const {}}) → Future<HeliumResponse< Map< >HeliumTransactionType, int> > - Counts transactions that indicate activity for a hotspot.
-
getAll(
{Set< HeliumHotspotMode> modeFilter = const {}}) → Future<HeliumPagedResponse< List< >HeliumHotspot> > - Lists known hotspots as registered on the blockchain.
-
getByBox(
double swlat, double swlon, double nelat, double nelon) → Future< HeliumPagedResponse< List< >HeliumHotspot> > - Fetches the hotspots which are within a given geographic boundary indicated by its south-western and north-eastern coordinates.
-
getByDistance(
double lat, double lon, int distance) → Future< HeliumPagedResponse< List< >HeliumHotspot> > -
Fetches the hotspots which are within a given number of metres from the
given
lat
andlon
coordinates. -
getByH3Index(
String h3index) → Future< HeliumPagedResponse< List< >HeliumHotspot> > - Fetches the hotspots which are in the given H3 index.
-
getByName(
String name) → Future< HeliumResponse< List< >HeliumHotspot> > - Fetches the hotspots which map to the given 3-word animal name.
-
getCurrentlyElectedHotspots(
) → Future< HeliumResponse< List< >HeliumHotspot> > - Returns the list of hotspots that are currently elected to the concensus group.
-
getElections(
String address) → Future< HeliumPagedResponse< List< >HeliumTransactionConsensusGroupV1> > - Lists the consensus group transactions in which the given hotspot was involved.
-
getPoCReceipts(
String address) → Future< HeliumPagedResponse< List< >HeliumTransactionPoCReceiptsV1> > - Lists the challenge (receipts) in which the given hotspot is a challenger, challengee, or witness.
-
getRewards(
String address, DateTime minTime, DateTime maxTime) → Future< HeliumPagedResponse< List< >HeliumHotspotReward> > - Returns rewards for a given hotspot per reward block the hotspot is in, for a given timeframe.
-
getRewardTotal(
String address, DateTime minTime, DateTime maxTime) → Future< HeliumResponse< HeliumHotspotRewardTotal> > - Returns the total rewards earned for a given hotspot over a given time range.
-
getWitnessed(
String address) → Future< HeliumResponse< List< >HeliumHotspot> > - Retrieves the list of hotspots the given hotspot witnessed over about the last 5 days of blocks.
-
getWitnesses(
String address) → Future< HeliumResponse< List< >HeliumHotspot> > - Retrieves the list of witnesses for a given hotspot over about the last 5 days of blocks.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited