Intrinsic gas too low and exceeds block limit

0 votes

I am trying to create and broadcast a raw transaction on the ethereum testnet network. I am trying to broadcast a raw transaction but it is not working. This is the code I am using:

function createRawTransacton(){
var privateKey = new Buffer('d3780dd620ef80b3918dfcdb9105f76147fc55a3775ff71805ccec09a89063ed', 'hex')
var rawTx = {
   nonce: 'CX350',
   gasPrice: 'C350',
   gasLimit: '0x09184e72a000',
   to: '0xc5622be5861b7200cbace14e28b98c4ab77bd9b4',
   value: 'CX350',
   data: '0x19dacbf83c5de6658e14cbf7bcae5c15eca2eedecf1c66fbca928e4d351bea0f'
}
var tx = new Tx(rawTx)
tx.sign(privateKey)
var serializedTx = tx.serialize()
console.log(serializedTx.toString('hex'))
broadCastTx(serializedTx.toString('hex'))
}

Please help

Aug 29, 2018 in Blockchain by slayer
• 29,370 points
3,047 views

1 answer to this question.

0 votes

If you are talking about the public testnet (morden), the default block gas limit is 4,712,388 (4.7 million).

Your raw transaction is set to limit:

gasLimit: '0x09184e72a000',

Which is 10^13 (10 trillion). That's why you get 'Exceeds block gas limit'. Try to set your gas limit to 4 million:

gasLimit: '0x3d0900',
answered Aug 29, 2018 by digger
• 26,740 points

Related Questions In Blockchain

0 votes
4 answers

Unable to run truffle@2.1.2 migrate --network live. “Exceeds block gas limit”

A simple solution to avoid this is: module.exports ...READ MORE

answered Sep 28, 2018 in Blockchain by Ludo
1,751 views
0 votes
1 answer

Ethereum truffle MetaCoin : 'intrinsic gas too low' error

Change the genesis block gasLimit to "gasLimit": "0x2FEFD800", config ...READ MORE

answered Oct 22, 2018 in Blockchain by Omkar
• 69,220 points
1,320 views
0 votes
1 answer

Solidity Error: Exceeds block gas limit

Remove the line norpc:true and change the ...READ MORE

answered Jan 24, 2019 in Blockchain by Omkar
• 69,220 points
2,890 views
0 votes
1 answer

What if Gas required in my program exceeds the limit of 3000000?

Going through your code, I noticed that  you ...READ MORE

answered May 29, 2018 in Blockchain by Perry
• 17,100 points
813 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,449 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,936 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,461 views
0 votes
1 answer
0 votes
1 answer

Generic put and get in hyperledger fabric

For this, you have to write a ...READ MORE

answered Jul 6, 2018 in Blockchain by digger
• 26,740 points
574 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