Web3S_Demo > Web 3S Ethereum Function Library > Make Eth Value from String

Make Eth Value from String

Tries to parse the input string value to an Ethereum value stored in an uint256 data type.

If the string value is prefixed with "0x" it will be interpreted as a hex value, otherwise as a decimal value.

Inputs

Value
String

The input value as string. Can be either in hex (prefixed with "0x") or decimal representation.

Unit
EWeb3S_EthereumUnit Enum

Describes in what unit the string should be interpreted as.

Outputs

Value
Uint 256 Structure

The parsed uint256 value.

Success
Boolean

True, if the input string value could be parsed.