Constructor
new Channel(settingsopt)
Creates a channel between two peers.
of many transactions over time, to be settled on-chain later.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
settings |
Object |
<optional> |
Configuration for the channel. |
- Source:
Methods
add(amount)
Add an amount to the channel's balance.
Parameters:
Name | Type | Description |
---|---|---|
amount |
Number | Amount value to add to current outgoing balance. |
- Source:
(async) fund(input)
Fund the channel.
Parameters:
Name | Type | Description |
---|---|---|
input |
Mixed | Instance of a Transaction. |
- Source:
(async) open(channel)
Parameters:
Name | Type | Description |
---|---|---|
channel |
Object | Channel settings. |
- Source: