Function prepareUnmintPremintTransaction
- prepareUnmintPremintTransaction(
dispenser: Dispenser,
distributor: Distributor,
senderAddr: string,
amount: number | bigint,
params: SuggestedParams,
note?: Uint8Array<ArrayBufferLike>,
): Transaction Parameters
- dispenser: Dispenser
dispenser to send gALGO to
- distributor: Distributor
distributor to receive ALGO from
- 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
Optional
note: 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
- dispenser: Dispenser
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.