Function FlashListenerAPI.onRequestedChannelOpen

Called when a counter-party has requested opening a channel with this node. The wallet should return an empty string if it accepts opening this channel, or an error message if the channel should be rejected.

abstract Result!(agora.flash.api.FlashAPI.ChannelUpdate) onRequestedChannelOpen (
  PublicKey pk,
  ChannelConfig chan_conf
) @safe;

Parameters

NameDescription
chan_conf the channel configuration

Returns

an empty string if the channel open should be accepted, else an error message which will be propagated back to the counter-party