class BlockHeader
(source)
An Ethereum 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: Bytes)
Creates a new block header. |
fun coinbase(): Address |
|
fun difficulty(): UInt256 |
|
fun equals(other: Any?): Boolean |
|
fun extraData(): Bytes |
|
static fun fromBytes(encoded: Bytes): BlockHeader
Deserialize a block header from RLP encoded bytes. |
|
fun gasLimit(): Gas |
|
fun gasUsed(): Gas |
|
fun hash(): Hash |
|
fun hashCode(): Int |
|
fun logsBloom(): Bytes |
|
fun mixHash(): Hash |
|
fun nonce(): Bytes |
|
fun number(): UInt256 |
|
fun ommersHash(): Hash |
|
fun parentHash(): Hash? |
|
static fun readFrom(reader: RLPReader): BlockHeader
Deserialize a block header from an RLP input. |
|
fun receiptsRoot(): Hash |
|
fun stateRoot(): Hash |
|
fun timestamp(): Instant |
|
fun toBytes(): Bytes |
|
fun toString(): String |
|
fun transactionsRoot(): Hash |