private ErrorCode WalletGetSearchTotalCountHandler(int storage_handle, int search_handle, ref IntPtr total_count_p)
 {
     try
     {
         total_count_p = new IntPtr(_storage.GetSearchTotalCountAsync(storage_handle, search_handle).GetAwaiter()
                                    .GetResult());
         return(ErrorCode.Success);
     }
     catch
     {
         return(ErrorCode.WalletStorageError);
     }
 }