eth / org.apache.tuweni.eth / BlockHeader

BlockHeader

class BlockHeader (source)

An Ethereum block header.

Constructors

<init>

Creates a new block header.

BlockHeader(parentHash: Hash?, ommersHash: Hash!, coinbase: Address!, stateRoot: Hash!, transactionsRoot: Hash!, receiptsRoot: Hash!, logsBloom: Bytes!, difficulty: UInt256!, number: UInt256!, gasLimit: Gas!, gasUsed: Gas!, timestamp: Instant!, extraData: Bytes!, mixHash: Hash!, nonce: UInt64!)

Functions

equals

fun equals(other: Any?): Boolean

fromBytes

Deserialize a block header from RLP encoded bytes.

static fun fromBytes(encoded: Bytes!): BlockHeader!

getCoinbase

fun getCoinbase(): Address!

getDifficulty

fun getDifficulty(): UInt256!

getExtraData

fun getExtraData(): Bytes!

getGasLimit

fun getGasLimit(): Gas!

getGasUsed

fun getGasUsed(): Gas!

getHash

fun getHash(): Hash!

getLogsBloom

fun getLogsBloom(): Bytes!

getMixHash

fun getMixHash(): Hash!

getNonce

fun getNonce(): UInt64!

getNumber

fun getNumber(): UInt256!

getOmmersHash

fun getOmmersHash(): Hash!

getParentHash

fun getParentHash(): Hash?

getReceiptsRoot

fun getReceiptsRoot(): Hash!

getStateRoot

fun getStateRoot(): Hash!

getTimestamp

fun getTimestamp(): Instant!

getTransactionsRoot

fun getTransactionsRoot(): Hash!

hashCode

fun hashCode(): Int

readFrom

Deserialize a block header from an RLP input.

static fun readFrom(reader: RLPReader!): BlockHeader!

toBytes

fun toBytes(): Bytes!

toString

fun toString(): String