Skip to main content
Erst supports debugging transactions on private Stellar networks, local development environments, and custom network configurations. This is essential for enterprises running private constellations or developers testing on local networks.

Features

  • Connect to private/local Stellar networks
  • Secure storage of network configurations with encrypted passphrases
  • Support for custom Horizon and Soroban RPC endpoints
  • Manage multiple custom network profiles
  • File permissions set to 0600 for security

Quick start

One-time custom network usage

Debug a transaction on a custom network without saving the configuration:

Save a network profile

Save a custom network configuration for repeated use:

Managing custom networks

List all networks

Output:

Show network details

Output:

Remove a network

Configuration file

Custom networks are stored in ~/.erst/networks.json with restricted permissions (0600):
~/.erst/networks.json
Never commit ~/.erst/networks.json to version control as it may contain sensitive network passphrases.

Common use cases

Local Soroban development

Set up Erst for local Soroban contract development:
The standard standalone network passphrase is Standalone Network ; February 2017.

Enterprise private network

Configure Erst for your company’s private Stellar constellation:

Staging environment

Set up a staging network for pre-production testing:

Complete workflow example

Here’s a complete workflow for local contract development:

Security

Network passphrase protection

Erst implements several security measures for protecting sensitive network information:
  • Network passphrases are stored in ~/.erst/networks.json
  • File permissions are automatically set to 0600 (owner read/write only)
  • Config directory permissions are set to 0700 (owner access only)
  • Sensitive data is never logged or displayed in error messages

Best practices

Never commit ~/.erst/networks.json to version control.Add to .gitignore:
Use environment variables for CI/CD environments:
Rotate passphrases regularly for production networks and restrict access to the .erst directory on shared systems.

Programmatic usage

You can also manage custom networks programmatically using the Go API:

Create a custom network client

Save and load networks

Troubleshooting

Connection issues

Test your custom network connectivity:
Ensure your network is running and accessible:
Fix config file permissions:
Ensure your network passphrase matches exactly.Standard passphrases:
  • Mainnet: Public Global Stellar Network ; September 2015
  • Testnet: Test SDF Network ; September 2015
  • Local: Check your network configuration
The passphrase must match character-for-character, including spaces and punctuation.

Standard network passphrases

For reference, here are the standard Stellar network passphrases:

Environment variable reference

Configure custom networks using environment variables:
string
Horizon API endpoint URL.
string
Network passphrase for transaction signing.
string
Soroban RPC endpoint URL.
Example:

Future enhancements

Planned improvements for custom network support:
  • Support for network passphrase encryption
  • Auto-detect local Stellar network
  • Network health checks before debugging
  • Import/export network configurations
  • Support for multiple Horizon endpoints (load balancing)

Next steps

Configuration overview

Learn about all configuration methods

Environment variables

Configure using environment variables