Class RegisteredNodeEndpointData
A single service endpoint published by a RegisteredNodeData.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
[Experimental("HIERO001", UrlFormat = "https://github.com/bugbytesinc/Hiero/blob/main/docs/blocknode-client-plan.md")]
public class RegisteredNodeEndpointData
Properties
| Edit this page View SourceBlockNode
The block-node service descriptor when this endpoint serves the
Block Node APIs;
null
for other endpoint kinds.
Declaration
[JsonPropertyName("block_node")]
public RegisteredBlockNodeEndpointData? BlockNode { get; set; }
Property Value
| Type | Description |
|---|---|
| RegisteredBlockNodeEndpointData |
DomainName
The DNS domain name of the service, if published by name. Exactly one of DomainName or IpAddress is populated.
Declaration
[JsonPropertyName("domain_name")]
public string? DomainName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
GeneralService
The general-service descriptor when this endpoint is a
<code>GENERAL_SERVICE</code>;
null
for other endpoint kinds.
Declaration
[JsonPropertyName("general_service")]
public RegisteredGeneralServiceEndpointData? GeneralService { get; set; }
Property Value
| Type | Description |
|---|---|
| RegisteredGeneralServiceEndpointData |
IpAddress
The IP address of the service, if published by address.
Declaration
[JsonPropertyName("ip_address")]
public string? IpAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Port
The port the service listens on.
Declaration
[JsonPropertyName("port")]
public int Port { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
RequiresTls
Whether connecting to this endpoint requires TLS.
Declaration
[JsonPropertyName("requires_tls")]
public bool RequiresTls { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Type
The kind of service this endpoint provides — one of
BLOCK_NODE, MIRROR_NODE, RPC_RELAY or
GENERAL_SERVICE, the values
RegisteredNodeTypeFilter filters on.
Declaration
[JsonPropertyName("type")]
public string? Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceToUri()
Builds the gRPC URI for this endpoint, using https when
TLS is required and http otherwise.
Declaration
public Uri? ToUri()
Returns
| Type | Description |
|---|---|
| Uri |
when the endpoint publishes neither a domain name nor an IP address. |
Remarks
IPv6 addresses are bracketed as the URI syntax requires, so an
endpoint published as ::1 yields http://[::1]:40840.