Class FaucetClient
- Namespace
- Aptos
- Assembly
- Aptos.dll
public class FaucetClient
- Inheritance
-
FaucetClient
- Inherited Members
Constructors
FaucetClient(AptosClient)
public FaucetClient(AptosClient client)
Parameters
client
AptosClient
Methods
FundAccount(AccountAddress, ulong)
Funds an account with the given amount of coins using the faucet. If the network is not supported by the faucet, an exception will be thrown.
public Task<UserTransactionResponse> FundAccount(AccountAddress address, ulong amount)
Parameters
address
AccountAddressThe address of the account to fund.
amount
ulongThe amount of APT coins to fund.
Returns
- Task<UserTransactionResponse>
The transaction response of the funded account.
Exceptions
- FaucetException
Unable to fund the account.
- Exception
If the response from the faucet is not in the expected format.
FundAccount(string, ulong)
public Task<UserTransactionResponse> FundAccount(string address, ulong amount)