#[no_mangle]
pub unsafe extern "C" fn iohk_jormungandr_wallet_spending_counters(
    wallet: WalletPtr,
    spending_counters_ptr: *mut SpendingCounters
) -> ErrorPtr
Expand description

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

iohk_jormungandr_spending_counters_delete should be called to deallocate the memory when it’s not longer needed

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