Overview
SEP-1 (Stellar Info File) allows wallets and other Stellar applications to discover information about your anchor service. By hosting astellar.toml file at /.well-known/stellar.toml, you enable applications to automatically find:
- Your organization’s information
- Supported assets and currencies
- Authentication endpoints (SEP-10)
- SEP endpoints for SEP-6, SEP-24, SEP-31, SEP-38, SEP-45
Creating Your stellar.toml File
Create astellar.toml file with your service information. Here’s a minimal example to get started:
Configuration
To enable SEP-1, you need to configure how the Anchor Platform should access yourstellar.toml file. The platform supports three methods:
Environment Variables
Configure SEP-1 using the following environment variables:SEP1_ENABLED: Set totrueto enable SEP-1SEP1_TOML_TYPE: One offile,string, orurlSEP1_TOML_VALUE: The value depends on the type (see examples below)
Method 1: File (Recommended)
Best for: Production deployments where you manage the file on disk.Method 2: String
Best for: Quick testing, development, or when managing config via environment variables.Method 3: URL
Best for: Dynamic content or when hosting the file externally.When using the
url type, the Anchor Platform will fetch the file on each request. Make sure the URL is accessible from your Anchor Platform server and returns valid TOML content.Accessing Your stellar.toml File
Once configured and enabled, the Anchor Platform automatically serves yourstellar.toml file at the standard SEP-1 endpoint:
/.well-known/stellar.toml- The primary endpoint (served withContent-Type: text/plain)/- Redirects to/.well-known/stellar.tomlwhen SEP-1 is enabled
Testing Your Configuration
After starting the Anchor Platform, verify your configuration:stellar.toml content returned as plain text.
Alternative: External Hosting
You can also host yourstellar.toml file using a static file server like nginx or a CDN. If you choose this approach:
- Host the file at
https://your-domain.com/.well-known/stellar.toml - Ensure it’s publicly accessible
- Make sure your
stellar.tomlfile includes the correct URLs pointing to your Anchor Platform endpoints