pub unsafe fn wallet_spending_counters(
    wallet: WalletPtr,
    spending_counters_ptr_out: *mut SpendingCounters
) -> Result
Expand description

get the current spending counter for the (only) account in this wallet

the memory can be deallocated with spending_counters_delete.

Errors

  • this function may fail if the wallet pointer is null;

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