Categories
Cryptocurrency Ethereum Mastering Development

Error: Returned error: gas required exceeds allowance (12487794) or always failing transaction

I am trying to use a script which uses web3.js to transfer a specific amount of ERC20 tokens .I have made this script in such a way that if account doesnt has ether value it will try again and again until it gets the ether to pay for the gas . I run the script […]

Categories
Cryptocurrency Ethereum Mastering Development

Transactions stuck at pending on ropsten test net from one day

I am Writing a simple script for ERC20 token transfer method. which sign transaction offline and then submit it to network. Transfer method encoded data : var encoded = await MyContract.methods .transfer(receiver_address, 10); To get nonce of sender account : var nonce = await web3.eth.getTransactionCount( sender_address, "pending" ); To get estimateed Gas of latest block: […]