ServerConfiguration

data class ServerConfiguration(val identifier: String, val serverVersion: String, val minLibxmtpVersion: String, val auth: AuthConfiguration, val retention: RetentionConfiguration, val limits: LimitsConfiguration, val mls: MlsConfiguration, val smartContractWalletChains: List<String>)

One immutable snapshot of what a deployment published about itself (spec 006 §5.2).

Client.serverConfiguration returns the snapshot the client resolved at build, Client.refreshServerConfiguration fetches a fresh one, and Client.fetchServerConfiguration reads a deployment with no database and no client at all.

Counts the wire publishes as uint64 are Long here, per spec 006 §7. Every published value is far below 2^53, so the narrowing is lossless; a value that would not fit throws XMTPException rather than wrapping silently. The four uint32 rates in LimitsConfiguration stay UInt, which holds every value that wire type can carry.

Constructors

Link copied to clipboard
constructor(identifier: String, serverVersion: String, minLibxmtpVersion: String, auth: AuthConfiguration, retention: RetentionConfiguration, limits: LimitsConfiguration, mls: MlsConfiguration, smartContractWalletChains: List<String>)

Properties

Link copied to clipboard
Link copied to clipboard

Stable operator-chosen name. Empty only before a first fetch succeeds.

Link copied to clipboard
Link copied to clipboard

Empty when the operator published no minimum.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

CAIP-2 chain ids this deployment verifies smart contract wallet signatures on. Empty rejects every app-supplied signature.