createSubgroup

fun createSubgroup(genesisAddress: PayAddress, gid: GroupId, assetQty: ULong, opRet: SatoshiScript? = null): iTransaction

Create a subgroup. This function assumes that the wallet has an authority that allows it to create the specified subgroup. The returned transaction is NOT automatically published! You must call send.

Return

the signed transaction. You must send it!

Parameters

gid

What subgroup to create

assetQty

How many units of the subgroup token should be created

opRet

Optional data associated with the subgroup genesis. @see https://spec.nexa.org/tokens/nft/#In_the_Genesis_Transaction)

genesisAddress

Destination for the new tokens


fun createSubgroup(gid: GroupId, assetQty: ULong, opRet: SatoshiScript? = null): Pair<iTransaction, PayAddress>

Create a subgroup. This function assumes that the wallet has an authority that allows it to create the specified subgroup. The returned transaction is NOT automatically published! You must call send.

Return

Pair(the signed transaction, the destination address (it will be in this wallet)). You must send the transaction!

Parameters

gid

What subgroup to create

assetQty

How many units of the subgroup token should be created

opRet

Optional data associated with the subgroup genesis. @see https://spec.nexa.org/tokens/nft/#In_the_Genesis_Transaction)