Relay

scalus.cardano.ledger.Relay
See theRelay companion object
enum Relay

Represents a relay for a stake pool in the Cardano blockchain.

A relay is a network endpoint for a stake pool that can be one of three types:

  • SingleHostAddr: An IP address with optional port
  • SingleHostName: A DNS name with optional port
  • MultiHostName: A DNS name for SRV lookup

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class MultiHostName(dnsName: String)

A relay specified by a DNS name for SRV lookup.

A relay specified by a DNS name for SRV lookup.

Value parameters

dnsName

The DNS name (SRV record)

Attributes

final case class SingleHostAddr(port: Option[Int], ipv4: Option[ByteString], ipv6: Option[ByteString])

A relay specified by an IP address.

A relay specified by an IP address.

Value parameters

ipv4

Optional IPv4 address (4 bytes)

ipv6

Optional IPv6 address (16 bytes)

port

Optional port number

Attributes

final case class SingleHostName(port: Option[Int], dnsName: String)

A relay specified by a DNS name.

A relay specified by a DNS name.

Value parameters

dnsName

The DNS name (A or AAAA record)

port

Optional port number

Attributes