newToken

open override fun newToken(authAddress: PayAddress, opRetTokenDesc: SatoshiScript?, groupFlags: Int, authorityFlags: Long): Pair<iTransaction, GroupId>

Create a new group token

Return

A pair consisting of the signed transaction and the created group. This transaction's inputs are reserved, but it is NOT yet issued. Call send to actually issue the tx to the blockchain. If you modify this transaction, note that the first input's UTXO (outpoint) MUST not be changed, since the groupId creation depends on it.

Parameters

authAddress

The group genesis authority will be paid to this address. Typically, you'd use an address from this wallet, but you can generate a group to some other wallet.

opRetTokenDesc

: SatoshiScript? Token description (contents of OP_RETURN). Use SatoshiScript.makeTokenDesc to create this. 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.

groupFlags

See GroupIdFlags for possible flags

authorityFlags

See GroupAuthorityFlags for possible authorities