Function stackmate::decode_psbt[][src]

#[no_mangle]
pub unsafe extern "C" fn decode_psbt(
    network: *const c_char,
    psbt: *const c_char
) -> *mut c_char
Expand description

Decodes a PSBT and returns all outputs of the transaction and total size. “miner” is used in the ‘to’ field of an output to indicate fee.

Safety

  • This function is unsafe because it dereferences and returns raw pointer.
  • Ensure that result is passed into cstring_free after use.