API

approve

Calling at start of the channel and approving it

await channel.approve();

reject

Calling at start of the channel and reject it

await channel.reject();

transfer

Transfer moneys inside of the channel to the second side.

Params:

amount - {number} - How much money we transfer?

message - {string|object} - Transfer message

await channel.transfer(100, 'hello!');

closeMutually

Mutually closing the channel

await channel.closeMutually();

closeOneSide

Onesided closing of the channel

await channel.closeOneSide();

Last updated