Function createUpdateTx

Create an update / trigger transaction which spends from a previous trigger / update transaction. The output of the transaction can only be spent by either another update transaction, or a relative time-locked settlement transaction, based on the branching used when spending this update transaction.

Transaction createUpdateTx (
  in ref const(ChannelConfig) chan_conf,
  in const(uint) seq_id,
  in ref const(geod24.bitblob.BitBlob!(64L)) prev_utxo_hash
) nothrow @safe;

Parameters

NameDescription
chan_conf the channel configuration.
seq_id the sequence ID.
prev_utxo_hash the previous update / trigger transaction output.

Returns

the updeate transaction.