Web3S_Demo > Web 3S Ethereum Function Library > ValidateEthereumAddress

ValidateEthereumAddress

Validates an Ethereum address hash and calculates its checksum representation.

Inputs

In
Exec

Eth Address
String

The input Ethereum address hash. Must be exactly 40 characters long and consist of valid hexadecimal characters.

Outputs

Out
Exec

Out Error Message
String

A reference to a string that will hold an error message if validation fails.

Out Eth Address with Checksum
String

A reference to a string that will store the calculated checksum address if successful.

Return Value
Boolean

true if the input hash is valid and the checksum was calculated successfully, false otherwise.