Geth sendTransaction not working

0 votes

I am trying to make 100+ ether transactions using a loop. I have included a status returning mechanism which will
tel me whether the transaction was successful or not.

When i start the loop, many transascctions are not happening. 

the code is: 

eth.sendTransaction({
from: privateWeb3.eth.coinbase,
to: result,
value: privateWeb3.toWei(2, 'ether')
}

Jul 3, 2018 in Blockchain by slayer
• 29,350 points
1,200 views

1 answer to this question.

0 votes
Best answer
When transactions are put in a loop, the transactions are generated very fast. This does not give geth time to update itself with new data(nonce) and so it uses the same one for the next transaction too and hence the transactions get rejected. Try slowing down the loop by adding time breaks in between transactions.
answered Jul 3, 2018 by Omkar
• 69,210 points

selected Jul 3, 2018 by slayer

Related Questions In Blockchain

0 votes
0 answers

not working eth.sendTransaction

https://www.edureka.co/blog/ethereum-private-network-tutorial/amp/ after below steps, not able to send/transact ...READ MORE

Oct 11, 2021 in Blockchain by rathnamachary
• 120 points
614 views
0 votes
1 answer

My first Hyperledger fabric network is not working

Delete as admin the channel-artifacts folder, down ...READ MORE

answered Aug 10, 2018 in Blockchain by Johnathon
• 9,090 points
1,629 views
0 votes
1 answer

Function not working from class

Try this code:  // Add new block ...READ MORE

answered Aug 16, 2018 in Blockchain by digger
• 26,740 points
431 views
0 votes
1 answer

OpenSSL i2o_ECPublicKey not working

When your right something in the buffer, ...READ MORE

answered Aug 17, 2018 in Blockchain by digger
• 26,740 points
920 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,706 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,237 views
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 2,210 views
–1 vote
1 answer

setEtherbase() not working in geth

setEtherbase() is not a method of the personal ...READ MORE

answered Jan 17, 2019 in Blockchain by Omkar
• 69,210 points
1,282 views
–1 vote
1 answer

Geth miner not working

Hi. miner.start() gives no output. So, when the output ...READ MORE

answered Jan 17, 2019 in Blockchain by Omkar
• 69,210 points
2,274 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP