requestSuiFromFaucetV0 method

Future<FaucetResponse> requestSuiFromFaucetV0(
  1. String recipient
)

Implementation

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

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