Function broadcast_tx

Source
#[no_mangle]
pub unsafe extern "C" fn broadcast_tx(
    descriptor: *const c_char,
    node_address: *const c_char,
    signed_psbt: *const c_char,
) -> *mut c_char
Expand description

Broadcasts a signed transaction to a remote node.

  • OUTPUT
 Txid {
   pub txid: String,
 }

ยง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.