Function prepareMintTransactions

  • Returns a group transaction to mint gALGO for ALGO at a one-to-one rate.

    If you want to commit then MUST be paired with prepareCommitOrVoteTransaction as to send the required note to the signup address.

    Returns

    Transaction[] mint transactions

    Parameters

    • dispenser: Dispenser

      dispenser to mint gALGO from

    • distributor: Distributor

      distributor that calls dispenser and to send ALGO to

    • senderAddr: string

      account address for the sender

    • amount: number | bigint

      amount of ALGO to send and gALGO to mint

    • ensureCommit: boolean

      whether to ensure in commitment period

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    • Optional note: Uint8Array

      optional note to distinguish who is the minter (must pass to be eligible for revenue share)

    Returns Transaction[]

Generated using TypeDoc