#[unsafe(no_mangle)]pub unsafe extern "C" fn get_weight(
descriptor: *const c_char,
psbt: *const c_char,
) -> *mut c_charExpand description
Gets the weight of a transaction built with a given descriptor.
- OUTPUT
TransactionWeight {
weight: usize,
}ยง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.