0

My smart contract costs 3.65 USD to deploy from truffle-cli. I wish to accomplish this in 2.5 USD. Is it possible to limit the gas price in gwei in truffle-config.js to accomplish this? I don't mind waiting for it to deploy.Gas prices are relatively low right now (6 gwei).

I have accomplished this on Rinkeby Testnet.

Or is this futile ?

Thank you.

1 Answer 1

2

You can change the gas price to be whatever you want - even 0. But the used gas price influences directly when your transaction gets included in a block.

If you use too low gas price, the transaction will most likely not be included. Unfortunately, nobody can tell you what is the lowest price with which it will get included within, for example, a week.

If your price is too low, the transaction will stay in the mempool (node transaction buffer) for a while but it will be simply discarded at some point and it's like you had never even sent it. Of maybe no node will even accept it in their mempool.

Your Answer

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

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