pub async fn fund_channel<P, N>(
counterparty: Address,
hopr_token: HoprTokenInstance<P, N>,
hopr_channels: HoprChannelsInstance<P, N>,
amount: U256,
) -> Result<()>where
P: Provider<N>,
N: Network,
Expand description
Funds the channel to the counterparty with the given amount of HOPR tokens. The amount must be present in the wallet of the client.