I'm analyzing this transaction

If you open the api transaction details

You can see

  1. gas "0x490b4"
  2. gasPrice "0x26e1f9c600"

By converting them to decimal and calculating we got total of : 0.049964396 Ether but if we compare with etherscan page there it says 0.036807301 Ether

What I'm i doing wrong

parseInt(0x490b4) * (parseInt(0x26e1f9c600) * 10 ** -18)

On picture everything is shown

enter image description here

1 Answer 1


Use gasUsed instead of gas to compute total paid

  • gasUsed 220403
  • gasPrice 167000000000

Then gasUsed * gasPrice / 10**18 = 0.036807301 ETH


Your Answer

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

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