fedimint_wallet_client::pegin_monitor

Function check_idx_pegins

Source
async fn check_idx_pegins(
    data: &WalletClientModuleData,
    tweak_idx: TweakIdx,
    btc_rpc: &DynBitcoindRpc,
    module_rpc: &DynModuleApi,
    db: &Database,
    client_ctx: &ClientContext<WalletClientModule>,
) -> Result<Vec<CheckOutcome>, Error>
Expand description

Query via btc rpc for a history of an address derived with tweak_idx and claim any peg-ins that are ready.

Return a list of CheckOutcomes for each matching output.