getHotspotForAddress method

Future<HeliumResponse<HeliumHotspot>> getHotspotForAddress(
  1. String address
)

Fetches the hotspot with the given address.

address is the B58 address of the hotspot.

Implementation

Future<HeliumResponse<HeliumHotspot>> getHotspotForAddress(
    String address) async {
  return _client._doRequest(HeliumRequest(
    path: '/v1/hotspots/$address',
    extractResponse: (json) => HeliumHotspot.fromJson(json['data']),
  ));
}