Function createClosingTx

Create a closing transaction which spends directly from the funding transactions. Collaborative nodes should prefer using a closing transaction when closing the channel, as it reduces the number of transactions they have to publish to the blockchain to just two: the funding and the closing transaction.

Transaction createClosingTx (
  in ref const(geod24.bitblob.BitBlob!(64L)) utxo,
  in const(Output[]) outputs
) nothrow @safe;

Parameters

NameDescription
utxo the utxo of the funding transaction
balance the final balance distribution of the channel.

Returns

the closing transaction