postAptosFaucet

Submits a request to the Aptos Faucet.

The faucet is used on test networks to fund accounts with testnet coins.

Usage

// Assuming `fundAccountOptions` is configured correctly
val resolution = aptos.postAptosFaucet(fundAccountOptions)

when (resolution) {
is Result.Ok -> {
val transactionHashes = resolution.value
println("Successfully funded account. Hashes: $transactionHashes")
}
is Result.Err -> println("Error funding account: ${resolution.error.message}")
}

Return

A Result which is either Ok containing a list of submitted transaction hashes, or Err containing an AptosSdkError.