Function prepareMintTransactions
- prepareMintTransactions(
dispenser: Dispenser,
distributor: Distributor,
senderAddr: string,
amount: number | bigint,
ensureCommit: boolean,
params: SuggestedParams,
note?: Uint8Array<ArrayBufferLike>,
): Transaction[] 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<ArrayBufferLike>optional note to distinguish who is the minter (must pass to be eligible for revenue share)
Returns Transaction[]
Transaction[] mint transactions
- dispenser: Dispenser
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.