Function prepareMintTransactions

  • Returns a group transaction to mint gALGO for ALGO at a one-to-one rate. If in the commitment period then also commits user into governance.

    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

    • includeOptIn: boolean

      whether to include an opt in transaction (must be opted in if minting in commitment period)

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    • Optionalnote: Uint8Array<ArrayBufferLike>

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

    Returns Transaction[]

    Transaction[] mint transactions