eth / org.apache.tuweni.eth / Block / fromHexString

fromHexString

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

Parse a hexadecimal string into a Block.

Parameters

str - The hexadecimal string to parse, which may or may not start with "0x".

Exceptions

IllegalArgumentException - if str does not correspond to a valid hexadecimal representation.

RLPException - If there is an error decoding the block.

Return
The value corresponding to str.