get_height

Function get_height 

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

Gets the current block height.

  • OUTPUT
 BlockHeight {
   height: u32,
 }

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