Function convert_fee_rate

Source
pub fn convert_fee_rate(
    target: usize,
    estimates: HashMap<u16, f64>,
) -> Option<f32>
Expand description

Get a fee value in sats/vbytes from the estimates that matches the confirmation target set as parameter.

Returns None if no feerate estimate is found at or below target confirmations.