Skip to main content

convertScalarValue

Callable

  • convertScalarValue(value: unknown, ethType: string, format: DataFormat): unknown

  • Converts a value depending on the format


    Parameters

    • value: unknown

      value to convert

    • ethType: string

      The type of the value to be parsed

    • format: DataFormat

      The format to be converted to

    Returns unknown

    • The value converted to the specified format