ValidatorInformation

public final class ValidatorInformation : Sendable

Represents validator node information from a stellar.toml file.

This class parses and provides access to the VALIDATORS section of a domain’s stellar.toml file. It contains information about Stellar validator nodes operated by the organization, including connection details and history archive locations.

Validator information is essential for network participants who need to configure their nodes to connect to trusted validators. This includes the validator’s public key, network address, and the location of its history archive for catchup operations.

Developers use this class when building node configuration tools, validator explorers, or applications that need to discover and connect to trusted validators on the Stellar network.

See also:

  • string A name for display in stellar-core configs that conforms to ^[a-z0-9-]{2,16}$

    Declaration

    Swift

    public let alias: String?
  • string A human-readable name for display in quorum explorers and other interfaces

    Declaration

    Swift

    public let displayName: String?
  • G… string The Stellar account associated with the node

    Declaration

    Swift

    public let publicKey: String?
  • G… string The IP:port or domain:port peers can use to connect to the node

    Declaration

    Swift

    public let host: String?
  • uri The location of the history archive published by this validator

    Declaration

    Swift

    public let history: String?
  • Initializes validator information from a parsed TOML document.

    Declaration

    Swift

    public init(fromToml toml: Toml)

    Parameters

    toml

    The parsed TOML document containing validator configuration