0

8,000,000 gas seems to be the maximum gas allowed when deploying a contract on mainnet.

My question is, is it even safe to do so or do I have a bigger risk that my deployment tx fails ? If so I would loose my consumed gas at every failed attempt.

  • Do I need to take a margin ? (say 7,500,000 ??)
  • Do I need to put high gas price to be sure to be included in next block in priority?
  • I see the latest blocks with 30,000,000 gas limit, so does the 8,000,000 limit only applies to deploying contracts ? (if so 8,000,000 should be safe !)

gn.

1 Answer 1

0

If the transaction is under the current Ethereum consensus rules it should be allowed.

But miners have the final decision some might prefer to exclude large transactions unless the gasPrice is above average, other probably won't care.

You can start sending it with above average gasPrice and then increasing it by 10 percentage until it is mined or the cost is too much.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.