Creates a faucet facade.
Optionalconfig: CallerConfig
Optional caller configuration, such as the network and access token.
Optionalapi: AftermathApi
Optional provider used to build faucet transactions.
Optional ReadonlyapiOptional provider used to build faucet transactions.
The mutable configuration used for subsequent requests.
Fetches the SUI payment coin and builds a transaction that mints a SuiFren.
Mint fee, SuiFren type, and wallet that signs the transaction.
A promise for a transaction ready for the wallet to sign and execute.
Builds a transaction that mints and transfers one faucet coin.
Coin type to mint and wallet that receives it.
A transaction ready for the wallet to sign and execute.
Fetches the coin types currently supported by the faucet.
A promise for the supported coin type strings.
StaticapiReturns the canonical Aftermath API host for a Sui network.
To target a custom or local host, pass baseUrl in CallerConfig to the
constructor instead.
The Sui network whose host to return.
The network's HTTPS or local HTTP API host.
StaticdefaultReturns the canonical Sui fullnode URL for a network.
The network whose fullnode URL to return. undefined
defaults to mainnet.
The network's fullnode URL.
Provides the high-level faucet API for supported coins and faucet transactions.