#[unsafe(no_mangle)]pub unsafe extern "C" fn estimate_network_fee(
network: *const c_char,
node_address: *const c_char,
conf_target: *const c_char,
) -> *mut c_charExpand description
Gets the current network fee (in sats/vbyte) for a given confirmation target.
- OUTPUT
NetworkFee {
rate: f32,
absolute: Option<u64>,
}ยงSafety
- This function is unsafe because it dereferences and a returns raw pointer.
- ENSURE that result is passed into cstring_free(ptr: *mut c_char) after use.