tuweni / org.apache.tuweni.eth / BlockHeader

BlockHeader

class BlockHeader (source)

An Ethereum block header.

Constructors

<init>

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: Bytes)

Creates a new block header.

Functions

coinbase

fun coinbase(): Address

difficulty

fun difficulty(): UInt256

equals

fun equals(other: Any?): Boolean

extraData

fun extraData(): Bytes

fromBytes

static fun fromBytes(encoded: Bytes): BlockHeader

Deserialize a block header from RLP encoded bytes.

gasLimit

fun gasLimit(): Gas

gasUsed

fun gasUsed(): Gas

hash

fun hash(): Hash

hashCode

fun hashCode(): Int

logsBloom

fun logsBloom(): Bytes

mixHash

fun mixHash(): Hash

nonce

fun nonce(): Bytes

number

fun number(): UInt256

ommersHash

fun ommersHash(): Hash

parentHash

fun parentHash(): Hash?

readFrom

static fun readFrom(reader: RLPReader): BlockHeader

Deserialize a block header from an RLP input.

receiptsRoot

fun receiptsRoot(): Hash

stateRoot

fun stateRoot(): Hash

timestamp

fun timestamp(): Instant

toBytes

fun toBytes(): Bytes

toString

fun toString(): String

transactionsRoot

fun transactionsRoot(): Hash