This question already has an answer here:

Looking at the output of https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getblockbyhash

Does anyone know what do the "mixHash" and "extraData" field mean? and what is the Unit of gasLimit and gasUsed? (I think is GWei, but not sure)

marked as duplicate by Richard Horrocks, Achala Dissanayake, Ismael, flygoing, Roman Frolov Feb 12 at 19:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 1 down vote accepted

gasLimit and gasUsed are denominated in a unit called gas. gasLimit is the maximum number of gas that the sender is willing to spend. gasUsed is the actual amount of gas consumed by the transaction.

To figure out how much the transaction cost in Wei you multiply gasPrice (another setting that the sender sets) by gasUsed.

gasUsed * gasPrice == cost of transaction in Wei.

  • so it is stored in "wei"? thats what Im looking to confirm. thanks – Diego Feb 12 at 20:00
  • 1
    Gas is in a unit called gas. It only becomes Wei when you multiply by price which is denominated in wei / gas. The gas units cancel out and you end up with Wei. – Thomas Jay Rush Feb 12 at 20:33
  • of course...thanks very much – Diego Feb 12 at 21:34

MixedHash:

A 256-bit hash which proves, combined with the nonce, that a sufficient amount of computation has been carried out on this block: the Proof-of-Work (PoF).

extraData

An optional free, but max. 32 byte long space to conserve smart things for ethernity on the Blockchain.

GasLimit

The gas limit is maximum amount of units of gas you are willing to spend on a transaction. This will decide by community based on your opcode set.

For example if you have a contract that will add two numbers, gasLimit maximum amount of units to execute function. This list will find below link

https://docs.google.com/spreadsheets/d/1m89CVujrQe5LAFJ8-YAUCcNK950dUzMQPMJBxRtGCqs/edit#gid=0

  • thanks. Regarding the gas, I want to know in what unit are the vales stored? wei, Gwei,...? – Diego Feb 12 at 20:01
  • As far as I know gas unit is gas. Gas will store in uint256 – Jitendra Kumar. Balla Feb 13 at 3:21

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