where both gasLimit and gasUsed are equal to 15M.
However, when fetching the transaction receipt for the block's transaction, the gasUsed is equal to 1_942_327.
When calculating the block's gasUsed, we mistakenly used the gas limit set by the transaction author, and not the gasUsed from the transaction's receipt.
When fetching the following block with all its transactions:
we get back:
where both
gasLimit
andgasUsed
are equal to 15M. However, when fetching the transaction receipt for the block's transaction, thegasUsed
is equal to 1_942_327. When calculating the block'sgasUsed
, we mistakenly used thegas
limit set by the transaction author, and not thegasUsed
from the transaction's receipt.