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; } }
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; } }