Interface BlockHeader
- All Superinterfaces:
ProcessableBlockHeader
The minimum set of data for a BlockHeader, as defined in the Ethereum Yellow Paper.
-
Method Summary
Modifier and TypeMethodDescriptionOptional<? extends org.hyperledger.besu.datatypes.Hash> The balHash of this header.The blob_gas_used of this header.org.hyperledger.besu.datatypes.HashThe Keccak 256-bit hash of this header.Optional<? extends org.hyperledger.besu.datatypes.Quantity> The excess_blob_gas of this header.org.apache.tuweni.bytes.BytesAn arbitrary byte array containing data relevant to this block.longA scalar value equal to the total gas used in transactions in this block.org.hyperledger.besu.datatypes.LogsBloomFilterThe Bloom filter composed from indexable information (logger address and log topics) contained in each log entry from the receipt of each transaction in the transactions list.org.hyperledger.besu.datatypes.HashA 256-bit hash which, combined with the nonce, proves that a sufficient amount of computation has been carried out on this block.longgetNonce()A 64-bit value which, combined with the mixhash, proves that a sufficient amount of computation has been carried out on this block.org.hyperledger.besu.datatypes.HashThe Keccak 256-bit hash of the ommers list portion of this block.org.hyperledger.besu.datatypes.HashThe Keccak 256-bit hash of the root node of the trie structure populated with the receipts of each transaction in the transactions list portion of the block.Optional<? extends org.hyperledger.besu.datatypes.Hash> The Keccak 256-bit hash of the root node of the trie structure populated with each request in the request list portion of the block.org.hyperledger.besu.datatypes.HashThe Keccak 256-bit hash of the root node of the state trie, after all transactions are executed and finalizations applied.org.hyperledger.besu.datatypes.HashThe Keccak 256-bit hash of the root node of the trie structure populated with each transaction in the transactions list portion of the block.Optional<? extends org.hyperledger.besu.datatypes.Hash> The Keccak 256-bit hash of the root node of the trie structure populated with each withdrawal in the withdrawals list portion of the block.default StringReturns a human-readable string for logging.Methods inherited from interface ProcessableBlockHeader
getBaseFee, getCoinbase, getDifficulty, getGasLimit, getNumber, getOptionalSlotNumber, getParentBeaconBlockRoot, getParentHash, getPrevRandao, getTimestamp
-
Method Details
-
getOmmersHash
org.hyperledger.besu.datatypes.Hash getOmmersHash()The Keccak 256-bit hash of the ommers list portion of this block.- Returns:
- The Keccak 256-bit hash of the ommers list portion of this block.
-
getStateRoot
org.hyperledger.besu.datatypes.Hash getStateRoot()The Keccak 256-bit hash of the root node of the state trie, after all transactions are executed and finalizations applied.- Returns:
- The Keccak 256-bit hash of the root node of the state trie, after all transactions are executed and finalizations applied.
-
getTransactionsRoot
org.hyperledger.besu.datatypes.Hash getTransactionsRoot()The Keccak 256-bit hash of the root node of the trie structure populated with each transaction in the transactions list portion of the block.- Returns:
- The Keccak 256-bit hash of the root node of the trie structure populated with each transaction in the transactions list portion of the block.
-
getReceiptsRoot
org.hyperledger.besu.datatypes.Hash getReceiptsRoot()The Keccak 256-bit hash of the root node of the trie structure populated with the receipts of each transaction in the transactions list portion of the block.- Returns:
- The Keccak 256-bit hash of the root node of the trie structure populated with the receipts of each transaction in the transactions list portion of the block.
-
getLogsBloom
org.hyperledger.besu.datatypes.LogsBloomFilter getLogsBloom()The Bloom filter composed from indexable information (logger address and log topics) contained in each log entry from the receipt of each transaction in the transactions list.- Returns:
- The Bloom filter composed from indexable information (logger address and log topics) contained in each log entry from the receipt of each transaction in the transactions list.
-
getGasUsed
long getGasUsed()A scalar value equal to the total gas used in transactions in this block.- Returns:
- A scalar value equal to the total gas used in transactions in this block.
-
getExtraData
org.apache.tuweni.bytes.Bytes getExtraData()An arbitrary byte array containing data relevant to this block. This must be 32 bytes or fewer.- Returns:
- An arbitrary byte array containing data relevant to this block. This must be 32 bytes or fewer.
-
getMixHash
org.hyperledger.besu.datatypes.Hash getMixHash()A 256-bit hash which, combined with the nonce, proves that a sufficient amount of computation has been carried out on this block.- Returns:
- A 256-bit hash which, combined with the nonce, proves that a sufficient amount of computation has been carried out on this block.
-
getNonce
long getNonce()A 64-bit value which, combined with the mixhash, proves that a sufficient amount of computation has been carried out on this block.- Returns:
- A 64-bit value which, combined with the mixhash, proves that a sufficient amount of computation has been carried out on this block.
-
getBlockHash
org.hyperledger.besu.datatypes.Hash getBlockHash()The Keccak 256-bit hash of this header.- Returns:
- The Keccak 256-bit hash of this header.
-
getWithdrawalsRoot
Optional<? extends org.hyperledger.besu.datatypes.Hash> getWithdrawalsRoot()The Keccak 256-bit hash of the root node of the trie structure populated with each withdrawal in the withdrawals list portion of the block.- Returns:
- The Keccak 256-bit hash of the root node of the trie structure populated with each withdrawal in the withdrawal list portion of the block.
-
getRequestsHash
Optional<? extends org.hyperledger.besu.datatypes.Hash> getRequestsHash()The Keccak 256-bit hash of the root node of the trie structure populated with each request in the request list portion of the block.- Returns:
- The Keccak 256-bit hash of the root node of the trie structure populated with each request in the request list portion of the block.
-
getBalHash
Optional<? extends org.hyperledger.besu.datatypes.Hash> getBalHash()The balHash of this header.- Returns:
- The balHash of this header.
-
getExcessBlobGas
Optional<? extends org.hyperledger.besu.datatypes.Quantity> getExcessBlobGas()The excess_blob_gas of this header.- Returns:
- The excess_blob_gas of this header.
-
getBlobGasUsed
-
toLogString
-