2

I am trying to figure out the total gas used by a transaction. It appears gasUsed = cumulativeGasUsed but both values don't check out with the following check:

gasPrice = 100000000000
Number(currentBalance) == Number(previousBalance) + amount - (gasUsed * gasPrice)

In fact, it's off by 10000. My best guess is the internal .transfer call throws off the gasUsed value.

  • Hey @nickjm, I ran into the same problem. Have you found a solution yet? – Alic Jun 11 '18 at 14:26

Your Answer

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

Browse other questions tagged or ask your own question.