Function FlashControlAPI.beginUnilateralClose

If the counter-party rejects a collaborative closure, the wallet may initiate a unilateral closure of the channel.

abstract Result!(bool) beginUnilateralClose (
  PublicKey reg_pk,
  geod24.bitblob.BitBlob!(64L) chan_id
) @safe;

This will publish the latest update transaction to the blockchain, and after the time lock expires the settlement transaction will be published too.

Parameters

NameDescription
reg_pk the registered public key. If this key is not managed by this Flash node then an error will be returned.
chan_id the ID of the channel to close

Returns

true if this channel ID exists and may be closed, else an error