requestAirdrop method

Implementation

Future<RequestAirdropResponse?> requestAirdrop(RequestAirdropOptions options) async {
  var appConfig = _ensureAppConfig();
  AppConfigMint? mint = _getAppMint(appConfig, options.mint);

  return airdropApi.requestAirdrop(RequestAirdropRequest(
    account: options.account,
    amount: options.amount,
    commitment: options.commitment ?? Commitment.confirmed,
    environment: sdkConfig.environment,
    index: sdkConfig.index,
    mint: mint.publicKey,
  ));
}