Configuration hierarchy
Configuration values are loaded in the following order, with later sources overriding earlier ones:- Default values - Built-in sensible defaults
- Configuration files - TOML files on disk
- Environment variables - System environment settings
- Command-line flags - Direct CLI arguments
Command-line flags always take precedence over all other configuration methods.
Configuration files
Erst searches for TOML configuration files in these locations (in order):.erst.tomlin the current directory~/.erst.tomlin your home directory/etc/erst/config.tomlsystem-wide configuration
Example configuration file
Copyerst.example.toml to one of the locations above:
~/.erst.toml
Core configuration options
Network connection
Single RPC endpoint URL for connecting to the Stellar network.
Array of RPC URLs for automatic fallback. Use this for high availability setups.
Network identifier. Valid values:
public- Mainnet (https://soroban.stellar.org)testnet- Testnet (https://soroban-testnet.stellar.org)futurenet- Futurenet (https://soroban-futurenet.stellar.org)standalone- Local development (http://localhost:8000)
Custom network passphrase for private networks. Required when using custom networks.Standard passphrases:
- Mainnet:
Public Global Stellar Network ; September 2015 - Testnet:
Test SDF Network ; September 2015
Simulator settings
Custom path to the
erst-sim binary. If not set, Erst searches:- Current directory (
./erst-sim) - Development path (
./simulator/target/release/erst-sim) - System PATH
Logging and debugging
Unified log level for both Go CLI and Rust simulator.Valid values:
trace, debug, info, warn, errorStorage and caching
Directory for storing transaction traces and snapshots.
Request settings
HTTP request timeout in seconds. Must be between 1 and 300.
Authentication token for RPC endpoints that require authorization.
Crash reporting
Enable anonymous crash reporting to help improve Erst.When enabled, fatal panics send minimal reports (error message, stack trace, OS/arch, version) to maintainers.
Custom endpoint for crash reports. Only used when
crash_reporting is enabled and no Sentry DSN is set.Sentry DSN for crash reporting. Obtain from your Sentry project settings.
Configuration validation
Erst validates your configuration on startup and provides clear error messages:Required fields
rpc_urlcannot be empty (unless using a named network)
Network validation
networkmust be one of:public,testnet,futurenet,standalone
Request timeout validation
request_timeoutmust be between 1 and 300 seconds
Default values
When no configuration is provided, Erst uses these defaults:Advanced configurations
Multi-RPC fallback
For production environments, configure multiple RPC endpoints:Development setup
Production security
Configuration storage
Erst stores additional configuration data in:~/.erst/config.json- General configuration (JSON format)~/.erst/networks.json- Custom network profiles~/.erst/cache/- Transaction traces and snapshots
All configuration files use restricted permissions (
0600) and directories use 0700 for security.Viewing current configuration
Use theerst config command to view your current configuration: