0

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.

1 Answer 1

0

when creating transactions, you can adjust gasLimit through option.

And Solidity offers the following keywords.

msg.gas msg.gasprice 

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

1

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.