AccountInformation

public final class AccountInformation : Sendable

Represents account and service endpoint information from a stellar.toml file.

This class parses and provides access to the account-level configuration section of a domain’s stellar.toml file. It contains service endpoints for various SEPs (Stellar Ecosystem Proposals), signing keys, and account identifiers.

Developers use this class to discover service URLs for operations such as:

  • SEP-10 web authentication
  • SEP-6 and SEP-24 transfer/deposit/withdrawal operations
  • SEP-12 customer information transfer
  • SEP-31 direct payments
  • SEP-38 quotes
  • Federation services

See also:

  • [StellarToml] for the main stellar.toml parser
  • SEP-0001
  • string The version of SEP-1 your stellar.toml adheres to. This helps parsers know which fields to expect.

    Declaration

    Swift

    public let version: String?
  • string The passphrase for the specific Stellar network this infrastructure operates on

    Declaration

    Swift

    public let networkPassphrase: String?
  • uses https: The endpoint for clients to resolve stellar addresses for users on your domain via SEP-2 federation protocol

    Declaration

    Swift

    public let federationServer: String?
  • uses https: The endpoint used for SEP-3 Compliance Protocol

    Declaration

    Swift

    public let authServer: String?
  • uses https: The server used for SEP-6 Anchor/Client interoperability

    Declaration

    Swift

    public let transferServer: String?
  • uses https: The server used for SEP-24 Anchor/Client interoperability

    Declaration

    Swift

    public let transferServerSep24: String?
  • uses https: The server used for SEP-12 Anchor/Client customer info transfer

    Declaration

    Swift

    public let kycServer: String?
  • uses https: The endpoint used for SEP-10 Web Authentication

    Declaration

    Swift

    public let webAuthEndpoint: String?
  • uses https: The endpoint used for SEP-45 Web Authentication for Contracts

    Declaration

    Swift

    public let webAuthForContractsEndpoint: String?
  • string The web authentication contract ID for SEP-45 Web Authentication

    Declaration

    Swift

    public let webAuthContractId: String?
  • Stellar public key The signing key is used for SEP-3 Compliance Protocol (deprecated) and SEP-10 Authentication Protocol

    Declaration

    Swift

    public let signingKey: String?
  • url Location of public-facing Horizon instance (if one is offered)

    Declaration

    Swift

    public let horizonUrl: String?
  • list of G… strings A list of Stellar accounts that are controlled by this domain.

    Declaration

    Swift

    public let accounts: [String]
  • The signing key is used for SEP-7 delegated signing

    Declaration

    Swift

    public let uriRequestSigningKey: String?
  • The server used for receiving SEP-31 direct fiat-to-fiat payments. Requires SEP-12 and hence a KYC_SERVER TOML attribute.

    Declaration

    Swift

    public let directPaymentServer: String?
  • The server used for receiving SEP-38 requests.

    Declaration

    Swift

    public let anchorQuoteServer: String?
  • Initializes account information from a parsed TOML document.

    Declaration

    Swift

    public init(fromToml toml: Toml)

    Parameters

    toml

    The parsed TOML document containing account configuration