requestSuiFromFaucetV1 method

Future<BatchFaucetResponse> requestSuiFromFaucetV1(
  1. String recipient
)

Implementation

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

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