You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
effectiveGasPrice is the price per gas at the time of your transaction, so the total gas cost of your transaction is effectiveGasPrice * gasUsed. gasUsed is the total amount of gas used by this specific transaction.
So, why use cumulativeGasUsed instead of gasUsed for calculations? 😕
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
see: https://docs.web3js.org/guides/transactions/transactions/#step-4-send-a-transaction-and-review-the-results:~:text=Note%20that%20the,by%20effectiveGasPrice).
effectiveGasPrice
is the price per gas at the time of your transaction, so the total gas cost of your transaction iseffectiveGasPrice
*gasUsed
.gasUsed
is the total amount of gas used by this specific transaction.So, why use
cumulativeGasUsed
instead ofgasUsed
for calculations? 😕Beta Was this translation helpful? Give feedback.
All reactions