Function createFundingTx

Create a simple funding transaction which spends from the given UTXO and outputs it to a multisig key address from which either the trigger transaction or the closing transaction will spend from.

Transaction createFundingTx (
  in ref const(UTXO) utxo,
  in ref const(geod24.bitblob.BitBlob!(64L)) utxo_hash,
  in const(Amount) capacity,
  in ref const(agora.crypto.ECC.Point) pair_pk,
  Amount fee
) nothrow @safe;

Parameters

NameDescription
utxo funding UTXO
utxo_hash hash of utxo
capacity initial capacity of the channel
pair_pk Pair PublicKey
fee TX fee

Returns

the funding transaction