Function stackmate::build_tx [−][src]
#[no_mangle]
pub unsafe extern "C" fn build_tx(
deposit_desc: *const c_char,
node_address: *const c_char,
to_address: *const c_char,
amount: *const c_char,
fee_rate: *const c_char,
sweep: *const c_char
) -> *mut c_charExpand description
Builds a transaction for a given descriptor wallet. If sweep is set to true, amount value is ignored and will default to None. Set amount to 0 for sweep.
Safety
- This function is unsafe because it dereferences and returns raw pointer.
- Ensure that result is passed into cstring_free after use.