Web3S_Demo > Web 3S Filecoin Function Library > Make FIL Value

Make FIL Value

Tries to parse the input string value to a Filecoin 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_FilecoinUnit 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.