public override Task <CheckCryptoAddressResponse> IsCryptoAddressValid(CheckCryptoAddressRequest request, ServerCallContext context) { var resp = new CheckCryptoAddressResponse(); resp.Result = new CheckCryptoAddressResponse.Types.CheckCryptoAddressPayload() { IsValid = true }; return(Task.FromResult(resp)); }
public override async Task <CheckCryptoAddressResponse> IsCryptoAddressValid(CheckCryptoAddressRequest request, ServerCallContext context) { var result = new CheckCryptoAddressResponse(); var token = context.GetBearerToken(); var response = await _walletApiV1Client.HotWalletAddressesValidityAsync(request.AddressExtension, request.Address, request.AssetId, token); if (response.Result != null) { result.Body = new CheckCryptoAddressResponse.Types.Body { IsValid = response.Result.IsValid }; } if (response.Error != null) { result.Error = response.Error.ToApiError(); } return(result); }