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,170 points
234 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',

See also this question on Ethereum Stack Exchange.

answered Aug 29, 2018 by digger
• 26,550 points

Related Questions In Blockchain

0 votes
4 answers
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
• 67,660 points
63 views
0 votes
1 answer

Solidity Error: Exceeds block gas limit

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

answered Jan 23 in Blockchain by Omkar
• 67,660 points
118 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,020 points
78 views
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by ariaholic
• 7,340 points
90 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
169 views
0 votes
1 answer
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,550 points
45 views