Optional
_channelOptional
_fsmProtected
enqueueOptional
state?: Partial<ChannelState>Leave channel
It is possible to leave a channel and then later reestablish the channel off-chain state and continue operation. When a leave method is called, the channel fsm passes it on to the peer fsm, reports the current mutually signed state and then terminates.
The channel can be reestablished by instantiating another Channel instance with two extra params: existingChannelId and existingFsmId.
Remove event listener function
Event name
Callback function
Register event listener function
Possible events:
Event name
Callback function
Trigger mutual close
At any moment after the channel is opened, a closing procedure can be triggered. This can be done by either of the parties. The process is similar to the off-chain updates.
Function which verifies and signs mutual close transaction
Get current state
Get current status
Static
_initializeStatic
initializeChannel params
Channel
Example