During token creation and token transfer some ethers are used as gas. What is the most efficient way to refill an account with the same amount of ether? So that it doesn't run out of funds(ether). I'm using a web3 version-1. Any suggestions are welcome.


when creating transactions, you can adjust gasLimit through option.

And Solidity offers the following keywords.


gas(Transaction fee)= UsedGas * gasPrice = (GasLimit - msg.gas) * gasPrice

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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