Class BlockGlobalAddr

Represents a block global address within the system, supporting both block time and message count addresses.

Hierarchy

  • BlockGlobalAddr

Constructors

  • Constructs a new BlockGlobalAddr instance.

    Parameters

    • Optional blockTime: object

      Optional parameter for the block time object.

    • Optional messageCount: object

      Optional parameter for the message count object.

    Returns BlockGlobalAddr

Properties

blockTime?: object

The block time object, if this is a block time address.

messageCount?: object

The message count object, if this is a message count address.

Methods

  • Converts the BlockGlobalAddr to a byte array representation.

    Returns

    A Uint8Array containing the byte tag representing the block global address type.

    Returns Uint8Array

  • Converts the BlockGlobalAddr to its JSON string representation.

    Returns

    The JSON string that represents this BlockGlobalAddr.

    Returns string

  • Returns a prefixed string representation of the BlockGlobalAddr.

    Returns

    A prefixed string that includes the block global address type and a default hash value.

    Returns string

  • Creates a BlockGlobalAddr from a string representation.

    Returns

    A new BlockGlobalAddr instance.

    Throws

    Error if the format does not match known block global address types.

    Parameters

    • source: string

      The string representation of the block global address.

    Returns BlockGlobalAddr

Generated using TypeDoc