Function FlashAPI.openChannel

Requests opening a channel with the provided peer, if it's managed by this Flash node.

abstract Result!(agora.flash.Types.PublicNonce) openChannel (
  ChannelConfig chan_conf,
  PublicNonce peer_nonce,
  Address funder_address
) @safe;

Parameters

NameDescription
chan_conf contains all the static configuration for this channel.
peer_nonce the nonce pair that will be used for signing the initial settlement & trigger transactions.
funder_address network address of the funder node to bootstrap the communication

Returns

the nonce pair for the initial settle & trigger transactions, or an error code with an optional error message.