clementine_core::tx_sender

Function get_fee_rate_from_mempool_space

Source
async fn get_fee_rate_from_mempool_space(
    rpc_url: &Option<String>,
    rpc_endpoint: &Option<String>,
    network: Network,
) -> Result<Amount, SendTxError>
Expand description

Fetches the current recommended fee rate from RPC provider. Currently only supports Mempool Space API. This function is used to get the fee rate in sat/vkb (satoshis per kilovbyte). See Mempool Space API for more details.