Class CLValueUInt512

Represents a 512-bit unsigned integer value in the Casper type system.

Hierarchy

  • CLValueNumeric
    • CLValueUInt512

Constructors

Properties

value: BigNumber

Methods

  • Converts the UInt512 value to its byte representation.

    Returns

    A Uint8Array representing the bytes of the UInt512 value.

    Returns Uint8Array

  • Retrieves the numeric value.

    Returns

    The numeric representation of the value.

    Returns BigNumber

  • Converts the instance to a JSON-compatible string.

    Returns

    The string representation of the instance.

    Returns string

  • Converts the numeric value to a JavaScript number.

    Returns

    The numeric value as a JavaScript number.

    Returns number

  • Provides a string representation of the numeric value.

    Returns

    The string representation of the value.

    Returns string

  • Creates a CLValueUInt512 instance from a JSON representation.

    Returns

    A new CLValueUInt512 instance.

    Throws

    Will throw an error if the input is not a valid integer or is negative.

    Parameters

    • json: string | number

      The JSON representation of the UInt512 value. Can be a string or a number.

    Returns CLValueUInt512

Generated using TypeDoc