Skip to main content

Token.getMintTransaction() method

Construct a mint transaction without executing it. This is useful for estimating the gas cost of a mint transaction, overriding transaction options and having fine grained control over the transaction execution.

Signature:

getMintTransaction(to: string, amount: Amount): Promise<import("../..").TransactionTask>;

Parameters

ParameterTypeDescription
tostring
amountAmountThe amount of tokens you want to mint

Returns:

Promise<import("../..").TransactionTask>