mintTokens

abstract fun mintTokens(address: PayAddress, gid: GroupId, amountTokens: Long): iTransaction

Mint tokens.

This function will mint tokens regardless of whether enough exist in this wallet. To try to supply tokens from UTXOs, just create the output and call txCompleter. This function is syntatic sugar for txCompleter with TxCompletionFlags.MUST_MINT set

Return

The signed transaction. This transaction's inputs are reserved, but it is NOT yet issued. Call send to actually issue the tx to the blockchain.

Parameters

address

The tokens will be sent to this address.

gid

: What group token to mint Since it is HIGHLY discouraged that this be null (except for tests, etc), since wallet software will not be able to display your group token in a human readable manner, you MUST explicitly pass null if you do not want to provide any info.

amountTokens

: How many to mint