aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Provides the high-level faucet API for supported coins and faucet transactions.

    Hierarchy (View Summary)

    Index

    Optional provider used to build faucet transactions.

    config: CallerConfig

    The mutable configuration used for subsequent requests.

    • Fetches the SUI payment coin and builds a transaction that mints a SuiFren.

      Parameters

      Returns Promise<Transaction>

      A promise for a transaction ready for the wallet to sign and execute.

      Error when this facade was created without an AftermathApi instance.

    • Builds a transaction that mints and transfers one faucet coin.

      Parameters

      Returns Transaction

      A transaction ready for the wallet to sign and execute.

      Error when this facade was created without an AftermathApi instance.

    • Fetches the coin types currently supported by the faucet.

      Returns Promise<string[]>

      A promise for the supported coin type strings.

    • Returns the canonical Aftermath API host for a Sui network.

      To target a custom or local host, pass baseUrl in CallerConfig to the constructor instead.

      Parameters

      • network: SuiNetwork

        The Sui network whose host to return.

      Returns string

      The network's HTTPS or local HTTP API host.