Class: Channel

Channel(settingsopt)

The Channel is a encrypted connection with a member of your Peer group, with some amount of $BTC bonded and paid for each correctly-validated message. Channels in Fabric are powerful tools for application development, as they can empower users with income opportunities in exchange for delivering service to the network.

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)

Opens a Channel with a Peer.
Parameters:
Name Type Description
channel Object Channel settings.
Source: