Function tari_wallet_ffi::wallet_get_available_balance [−][src]
#[no_mangle]pub unsafe extern "C" fn wallet_get_available_balance(
wallet: *mut TariWallet,
error_out: *mut c_int
) -> c_ulonglong
Gets the available balance from a TariWallet. This is the balance the user can spend.
Arguments
wallet
- The TariWallet pointer
error_out
- Pointer to an int which will be modified to an error code should one occur, may not be null. Functions
as an out parameter.
Returns
c_ulonglong
- The available balance, 0 if wallet is null
Safety
None