/// <summary> /// /// </summary> /// <param name="transaction"></param> /// <returns></returns> /// <exception cref="ClientSideException">Throws client side exception</exception> public async Task ValidateInputAsync(EthTransaction transaction) { await _transactionValidationService.ValidateAddressBalanceAsync(transaction.FromAddress, transaction.Value, transaction.GasAmount, transaction.GasPrice); }
public async Task ValidateInput(Erc20Transaction transaction) { await _transactionValidationService.ValidateAddressBalanceAsync(transaction.FromAddress, transaction.Value, transaction.GasAmount, transaction.GasPrice); await ValidateTokenAddressBalanceAsync(transaction.FromAddress, transaction.TokenAddress, transaction.TokenAmount); }