Function wallet_core::c::wallet_total_value
source · pub unsafe fn wallet_total_value(
wallet: WalletPtr,
total_out: *mut u64
) -> Result
Expand description
get the total value in the wallet
make sure to call retrieve_funds
prior to calling this function
otherwise you will always have 0
After calling this function the results is returned in the total_out
.
Errors
- this function may fail if the wallet pointer is null;
If the total_out
pointer is null, this function does nothing
Safety
This function dereference raw pointers. Even though the function checks if the pointers are null. Mind not to put random values in or you may see unexpected behaviors