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

    Provides faucet transaction builders and event queries for AftermathApi.

    The transaction methods use the configured faucet and SuiFrens addresses, while the event methods query and cast the corresponding on-chain events.

    Index
    addresses: FaucetAddresses

    Package and shared-object addresses used by faucet transactions.

    eventTypes: { addCoin: string; mintCoin: string }

    Move event type strings used by the faucet event queries.

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

      The returned transaction sets walletAddress as sender and recipient.

      Parameters

      Returns Transaction

      A new transaction containing the mint and transfer commands.

    • Fetches a SUI payment coin and builds a SuiFren mint transaction.

      The payment amount is taken from mintFee, and the returned transaction sets walletAddress as its sender.

      Parameters

      Returns Promise<Transaction>

      A promise for the transaction that pays the fee and mints the SuiFren.

    • Fetches the coin types registered with the faucet.

      The method reads AddedCoin events and returns each coin type with its 0x prefix.

      Returns Promise<string[]>

      The registered faucet coin types.

    • Adds a mint_and_keep Move call for a SuiFren.

      The payment coin may be an object ID or an argument from the supplied transaction. The method mutates inputs.tx and leaves the minted result in the transaction for the caller to compose.

      Parameters

      • inputs: {
            suiFrenType: string;
            suiPaymentCoinId: string | TransactionArgument;
            tx: Transaction;
        }
        • suiFrenType: string

          SuiFren object type to mint.

        • suiPaymentCoinId: string | TransactionArgument

          SUI payment coin object ID or transaction argument.

        • tx: Transaction

          Transaction to mutate.

      Returns TransactionResult

      The result of the added Move call.

    • Mints coinType's configured default amount and returns the resulting Coin<T>. Use buildRequestCoinTx to mint and transfer it to a wallet in one transaction.

      Parameters

      • inputs: { coinType: string; tx: Transaction }
        • coinType: string

          Coin type to mint.

        • tx: Transaction

          Transaction to mutate.

      Returns TransactionResult

      The transaction result containing the minted coin.