eth / org.apache.tuweni.eth / Address / fromHexString

fromHexString

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

Parse a hexadecimal string into a Address.

Parameters

str - The hexadecimal string to parse, which may or may not start with "0x", and should encode exactly 20 bytes.

Exceptions

IllegalArgumentException - if str does not correspond to va alid hexadecimal representation containing 20 bytes.

Return
The value corresponding to str.