go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

Transaction pending on the network

Open developer2belfrics opened this issue 3 years ago • 10 comments

I initiated the transaction long back. it is still not confirmed on the network. i found that it is pending due to low gas price. so i am trying to resend the transaction with higher gas price but i am facing error insufficient fund for transfer even though i am having sufficient fund in my wallet

eth.getBalance('0x367ae801e27effe1f79394705d0696845ca13e0d') 30313139845072020

eth.sendTransaction({from:"0x367ae801e27effe1f79394705d0696845ca13e0d", to:"0x6f0dbff9f77dd6ff664d1e314135dd9eabffc100", value:"24000000000000000", nonce:"147", gasPrice:"9000000000", gasLimit:"21000"})

Please help me out on this

developer2belfrics avatar Mar 11 '21 07:03 developer2belfrics

Could you please paste the error?

Also, value and gasPrice should be hex really. Could you try with web3.toWei(9, "gwei") for the gas price and similarly for the value? Nonce and gasLimit is an int, no need for quotes.

According to etherscan, yous pending tx has a gas price ov 46 gwei, so replacing it with 9 won't help.

karalabe avatar Mar 11 '21 10:03 karalabe

I even tried with 90 gwei but it was saying insufficient fund error. but in the wallet it is having sufficient fund

Screen Shot 2021-03-11 at 12 35 32 PM

developer2belfrics avatar Mar 12 '21 07:03 developer2belfrics

value and gasPrice should be hex

karalabe avatar Mar 12 '21 08:03 karalabe

Nonce and gasLimit is an int

karalabe avatar Mar 12 '21 08:03 karalabe

Yes. I Changed the nonce and gas limit to int but still, i am getting insufficient fund error. I am having sufficient fund

Screen Shot 2021-03-18 at 8 42 23 AM

Even I tried with 196 gwei

Screen Shot 2021-03-18 at 8 53 09 AM

developer2belfrics avatar Mar 18 '21 03:03 developer2belfrics

I canceled this transaction and initiated a new transaction.

developer2belfrics avatar Mar 19 '21 07:03 developer2belfrics

So this issue is resolved then?

MariusVanDerWijden avatar Mar 22 '21 12:03 MariusVanDerWijden

@developer2belfrics Are you sure your node is fully synced?

ligi avatar Apr 08 '21 08:04 ligi

And can you pleas post the console content as text not screenshots?

ligi avatar Apr 08 '21 08:04 ligi

I agree, this does look a bit odd:

>>> g
196000000000
>>> gp
21680
>>> v
24000000000000000
>>> gp*g + v
28249280000000000
>>> b
30313139845072020
>>> b > gp*g + v
True

holiman avatar Apr 08 '21 08:04 holiman

This issue is quite stale now, closing

MariusVanDerWijden avatar Dec 01 '23 09:12 MariusVanDerWijden