@hiero-ledger/sdk
    Preparing search index...

    Class RegisteredServiceEndpoint

    A service endpoint published by a registered node.

    Abstract base class. Use one of the concrete subclasses (BlockNodeServiceEndpoint, MirrorNodeServiceEndpoint, RpcRelayServiceEndpoint, GeneralServiceEndpoint) instead of instantiating this class directly.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

    • Sets the fully-qualified domain name for this endpoint. Per the proto contract this must be a valid ASCII FQDN of at most 250 chars; the consensus node enforces that with INVALID_REGISTERED_ENDPOINT_ADDRESS.

      Parameters

      • domainName: string

      Returns RegisteredServiceEndpoint

      If domainName is null/undefined.

      If ipAddress is already set (proto oneof slot).

    • Sets the IP address for this endpoint. Per the proto contract this must be 4 bytes (IPv4) or 16 bytes (IPv6) in big-endian order; the consensus node enforces that with INVALID_REGISTERED_ENDPOINT_ADDRESS. The SDK does not pre-check the length so the network's status code is what surfaces.

      Parameters

      • ipAddress: Uint8Array<ArrayBufferLike>

      Returns RegisteredServiceEndpoint

      If ipAddress is null/undefined.

      If domainName is already set (proto oneof slot).