Client

public final class Client : Sendable

Client is the entrypoint into the XMTP SDK.

A client is created by calling create(account:options:) with a SigningKey that can create signatures on your behalf. The client will request a signature in two cases:

  1. To sign the newly generated key bundle. This happens only the very first time when a key bundle is not found in storage.
  2. To sign a random salt used to encrypt the key bundle in storage. This happens every time the client is started, including the very first time).

Important

The client connects to the XMTP dev environment by default. Use ClientOptions to change this and other parameters of the network connection.