hopr_chain_api

Function wait_for_funds

Source
pub async fn wait_for_funds<Rpc: HoprRpcOperations>(
    address: Address,
    min_balance: Balance,
    max_delay: Duration,
    rpc: &Rpc,
) -> Result<()>
Expand description

Waits until the given address is funded.

This is done by querying the RPC provider for balance with backoff until max_delay argument.