Relay Type

enum cardano_relay_type_t

Enumerates the types of relays used in the Cardano network.

This enumeration defines the different types of relay nodes that can be configured in the Cardano network. Each type represents a different method of connecting to the network.

Values:

enumerator CARDANO_RELAY_TYPE_SINGLE_HOST_ADDRESS

Relay connects to a single host using an IP address and a port number.

This is the most direct way of specifying a relay and does not depend on DNS resolution.

enumerator CARDANO_RELAY_TYPE_SINGLE_HOST_NAME

Relay connects using a DNS name and a port number.

This type allows the relay’s IP address to be resolved dynamically, which can provide resilience in environments where IP addresses may change.

enumerator CARDANO_RELAY_TYPE_MULTI_HOST_NAME

Relay uses a multi-host name via a DNS SRV record to resolve multiple potential IP addresses and ports.

This type is used for more complex network setups where load balancing across multiple servers is required.