tuweni / org.apache.tuweni.eth / Block

Block

class Block (source)

An Ethereum block.

Constructors

<init>

Creates a block.

Block(header: BlockHeader!, body: BlockBody!)

Functions

equals

fun equals(other: Any?): Boolean

fromBytes

Deserialize a block from RLP encoded bytes.

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

fromHexString

Parse a hexadecimal string into a Block.

static fun fromHexString(str: String!): Block!

getBody

Provides the block body

fun getBody(): BlockBody!

getHeader

Provides the block header

fun getHeader(): BlockHeader!

hashCode

fun hashCode(): Int

readFrom

Deserialize a block from an RLP input.

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

toBytes

Provides the block bytes

fun toBytes(): Bytes!

toString

fun toString(): String

writeTo

Write this block to an RLP output.

fun writeTo(writer: RLPWriter!): Unit