Class WalletSugar
Inheritance
object
WalletSugar
Assembly: Xrpl.dll
Syntax
public static class WalletSugar
Methods
|
Edit this page
View Source
FundWallet(IXrplClient, XrplWallet?, string?)
Funds a wallet from the network's faucet, giving up when cancellationToken
is cancelled. The wait for the faucet payment to be validated is tens of seconds, which is
the reason this overload exists: a cancelled call reports cancellation rather than a
faucet failure.
Declaration
public static Task<WalletSugar.Funded> FundWallet(this IXrplClient client, XrplWallet? wallet = null, string? faucetHost = null)
Parameters
Returns
|
Edit this page
View Source
FundWallet(IXrplClient, XrplWallet?, string?, CancellationToken)
Funds a wallet from the network's faucet, giving up when cancellationToken
is cancelled. The wait for the faucet payment to be validated is tens of seconds, which is
the reason this overload exists: a cancelled call reports cancellation rather than a
faucet failure.
Declaration
public static Task<WalletSugar.Funded> FundWallet(this IXrplClient client, XrplWallet? wallet, string? faucetHost, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| IXrplClient |
client |
|
| XrplWallet |
wallet |
|
| string |
faucetHost |
|
| CancellationToken |
cancellationToken |
|
Returns
|
Edit this page
View Source
GetFaucetHost(IXrplClient)
Declaration
public static string GetFaucetHost(IXrplClient client)
Parameters
Returns