sync_balance

Function sync_balance 

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

Syncs to a remote node and fetches balance of a descriptor wallet.

  • OUTPUT
WalletBalance {
  balance: 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.