Function prepareUnmintPremintTransaction

    • Returns a transaction to unmint pre-minted gALGO for ALGO at a one-to-one rate. Must be in commitment period. By unminting, you will lose your governance rewards.

      Parameters

      • distributor: Distributor

        distributor that calls dispenser and to send ALGO to

      • senderAddr: string

        account address for the sender

      • amount: number | bigint

        amount of gALGO to unmint and ALGO to receive

      • params: SuggestedParams

        suggested params for the transactions with the fees overwritten

      • Optionalnote: Uint8Array<ArrayBufferLike>

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

      Returns Transaction[]

      Transaction unmint pre-mint transaction