createConsolidationTx

open override fun createConsolidationTx(maxAmount: Long?): Pair<iTransaction, ByteArray>

Consolidate utxos. This allows you to spend larger quantities of coin because a transaction can only have 256 inputs.

Return

The consolidation transaction in object and serialized form

Parameters

maxAmount

If a maximum amount is specified, only consolidate utxos that hold less than this amount of coin