Function FlashControlAPI.beginUnilateralClose
If the counter-party rejects a collaborative closure, the wallet may initiate a unilateral closure of the channel.
This will publish the latest update transaction to the blockchain, and after the time lock expires the settlement transaction will be published too.
Parameters
Name | Description |
---|---|
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