These are chat archives for Nethereum/Nethereum
TransferFunction transferFunction = new TransferFunction();
transferFunction.FromAddress = fromAddress;
transferFunction.GasPrice = gasPrice.Value;
transferFunction.To = toAddress;
transferFunction.Value = _amount.Value;
var transactionHash = standarErc20Service.TransferAsync(transferFunction).GetAwaiter().GetResult();
The above function was working fine. But from last couple of days the transaction gets fail due to low gas.
@RevVivek - You might want to bump up the gas cost for token transfers, noticed the transaction was given 23k gas only.... Tried EstimateGasAsync?
Though I am curious why was it working before. It would work for ETH transfers, but gas allocation definitely isn't enough for ERC20.
@Pzixel - Hmmmmmm. In that case, maybe just recreate the JSON file from that private key?
@Trycode - Like what @DuanTranHuy has said, you could filter based on the latest blocks (something like filter = web3.eth.filter("latest") for web3js) and watch that filter.
(answer is assuming you're asking about web3js)