tuweni / org.apache.tuweni.eth / Block

Block

class Block (source)

An Ethereum block.

Constructors

<init>

Block(header: BlockHeader, body: BlockBody)

Creates a block.

Functions

body

fun body(): BlockBody

equals

fun equals(other: Any?): Boolean

fromBytes

static fun fromBytes(encoded: Bytes): Block

Deserialize a block from RLP encoded bytes.

fromHexString

static fun fromHexString(str: String): Block

Parse a hexadecimal string into a Block.

hashCode

fun hashCode(): Int

header

fun header(): BlockHeader

readFrom

static fun readFrom(reader: RLPReader): Block

Deserialize a block from an RLP input.

toBytes

fun toBytes(): Bytes

toString

fun toString(): String

writeTo

fun writeTo(writer: RLPWriter): Unit

Write this block to an RLP output.