RelayType
- class cometa.pool_params.relay_type.RelayType(value)[source]
Bases:
IntEnumEnumerates the types of relays used in the Cardano network.
Each type represents a different method of connecting to the network.
- SINGLE_HOST_ADDRESS = 0
Relay connects to a single host using an IP address and a port number.
- SINGLE_HOST_NAME = 1
Relay connects using a DNS name and a port number.
- MULTI_HOST_NAME = 2
Relay uses a multi-host name via a DNS SRV record.
- to_string()[source]
Returns a human-readable string representation of this relay type.
- Returns:
A string representation of the relay type.
- Return type:
str
Example
>>> from cometa.pool_params import RelayType >>> relay_type = RelayType.SINGLE_HOST_ADDRESS >>> relay_type.to_string() 'Single Host Address'