web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

transaction of erc20token is not being broadcasted

Open i-am-vivek opened this issue 8 years ago • 2 comments

Hi there,

System information

Geth Version: 1.8.12-stable Git Commit: 37685930d953bcbe023f9bc65b135a8d8b8f1488 Architecture: amd64 Protocol Versions: [63 62] Network Id: 1 Go Version: go1.10 Operating System: linux GOPATH= GOROOT=/usr/lib/go-1.10

I am trying to send the erc20 tokens one address to another. but transaction hash is generating. but it is not broadcasted. When I search transaction has on etherscan.io it shows

Sorry, We Are Unable To Locate This transaction Hash.

I'm using web31.0.0-beta.33 node plugin to make the transaction.

after some time I'm getting following error on nodejs console

Error: Transaction was not mined within 50 blocks, please make sure your transaction was properly sent. Beware that it might still be mined!

My Code to transact the token is, `let ctx = new web3.eth.Contract(ABI, contract_address, { from: xxxxxxx, gasPrice: gasPrice, gas: gas });

ctx.methods.transfer(to, 1000000000000000000 * amount).send() .on('transactionHash', (txHash) => { rs({ txHash }); }) .on('receipt', console.log) .on('confirmation', console.log) .on('error', console.error);` any help would be appreciated.

i-am-vivek avatar Sep 26 '18 07:09 i-am-vivek

Update to latest beta and do clean try. And make sure it don't hit transition limit.

chankruze avatar Jan 01 '19 20:01 chankruze

It is working now As I moved to infura blockchain. I don't know what was the real issue. But moving to infura solved the issue.

i-am-vivek avatar Feb 04 '19 08:02 i-am-vivek