requestMgoFromFaucetV1 method

Future<BatchFaucetResponse> requestMgoFromFaucetV1(
  1. String recipient
)

Implementation

Future<BatchFaucetResponse> requestMgoFromFaucetV1(String recipient) async {
  final data = {
    "FixedAmountRequest": {
      "recipient": recipient
    }
  };

  final resp = await http.post(endpoint + "/v1/gas", data: data);
  return BatchFaucetResponse.fromJson(resp.data);
}