Function prepareUnmintPremintTransaction
- prepareUnmintPremintTransaction(
distributor: Distributor,
senderAddr: string,
amount: number | bigint,
params: SuggestedParams,
note?: Uint8Array<ArrayBufferLike>,
): Transaction[] 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
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
- distributor: Distributor
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.