createSubgroups

fun createSubgroups(subgroupMinter: (iTransaction) -> Unit): iTransaction

Create a few subgroups in a single transaction. This function assumes that the wallet has an authority that allows it to create the specified subgroup.

Return

the signed transaction. You must send it!

Parameters

subgroupMinter

Pass a function that accepts a transaction and adds all the subgroup creation outputs you need. These outputs can be created as follows Example subgroup creation output: val subgid = gid.subgroup(byteArrayOf(something)) val genesis = txOutputFor(tx.chainSelector) genesis.amount = dust(tx.chainSelector) genesis.script = addr.groupedLockingScript(subgid, nftQty.toLong()) tx.add(genesis)