Example #1
0
 public virtual Response <object> AccountCoins(AccountCoinsRequest body, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("RosettaClient.AccountCoins");
     scope.Start();
     try
     {
         return(RestClient.AccountCoins(body, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
Example #2
0
 public virtual async Task <Response <object> > AccountCoinsAsync(AccountCoinsRequest body, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("RosettaClient.AccountCoins");
     scope.Start();
     try
     {
         return(await RestClient.AccountCoinsAsync(body, cancellationToken).ConfigureAwait(false));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }