Represents a boolean value that can be serialized and deserialized. This class extends the Serializable class and provides methods to serialize the boolean value for different contexts, such as entry functions and script functions.

Hierarchy (View Summary, Expand)

Implements

Implementation - BCS

  • Constructs a new instance with a specified value. This ensures that the value is validated to be within the acceptable range.

    Parameters

    • value: boolean

      The number to be validated and assigned, which must be between 0 and MAX_U256_BIG_INT.

    Returns Bool

  • Converts the BCS-serialized bytes of a value into a Hex instance. This function provides a Hex representation of the BCS-serialized data for easier handling and manipulation.

    Returns Hex

    A Hex instance with the BCS-serialized bytes loaded into its underlying Uint8Array.

Methods

  • Returns the hex string representation of the Serializable value with the 0x prefix.

    Returns string

    the hex formatas a string prefixed by 0x.

Properties

value: boolean
MMNEPVFCICPMFPCPTTAAATR