private ErrorCode WalletSearchRecordsHandler(int storage_handle, string type_, string query_json,
                                              string options_json, ref int search_handle_p)
 {
     try
     {
         search_handle_p = _storage.SearchRecordsAsync(storage_handle, type_, query_json, options_json)
                           .GetAwaiter().GetResult();
         return(ErrorCode.Success);
     }
     catch
     {
         return(ErrorCode.WalletStorageError);
     }
 }