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)
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)
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.
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