Skip to main content

fetch_server_configuration

Function fetch_server_configuration 

Source
pub async fn fetch_server_configuration<ApiClient>(
    api: &ApiClientWrapper<ApiClient>,
) -> Result<ServerConfiguration, ClientError>
where ApiClient: XmtpBackendClient,
Expand description

Read a deployment’s configuration with no database and no client.

The one call that needs no credential, so an app can learn whether the deployment requires authentication, which scopes it wants, and which chains it accepts before it decides how to build a client. Nothing is stored and no identifier binding is applied: there is no database to bind to.