Skip to main content

Network Presets

The Privacy Boost CLI includes built-in network presets for common configurations.

Available Presets

OP Sepolia Testnet

For testing on Optimism’s Sepolia testnet:
Aliases: op-sepolia, optimism-sepolia, opsepolia Configuration:
chain_id and shield_contract_address are auto-discovered from the server’s /api/v1/info endpoint at runtime.

OP Mainnet

There is no built-in --network preset for mainnet yet. Point server_url at the mainnet endpoint via a config file or environment variable:
As with the testnet preset, chain_id and shield_contract_address are auto-discovered from /api/v1/info.

Custom Configuration

Configuration File

Create a custom configuration at ~/.privacy-boost/config.toml:
Load automatically or specify path:

Environment Variables

Override any configuration with environment variables:

Priority Order

Configuration is resolved in this order (later overrides earlier):
  1. Default values
  2. Network preset (--network)
  3. Configuration file (~/.privacy-boost/config.toml)
  4. Custom config file (--config)
  5. Environment variables

Initialize Configuration

Create a configuration file from a preset:
If ~/.privacy-boost/config.toml already exists, init will skip and warn you. Delete the existing file first to reinitialize. You can also import an existing config file as the default:

Multiple Configurations

Use the --config flag to point at different config files per command:

RPC Provider Recommendations

Public RPC Endpoints

Private RPC Providers

For higher rate limits, use a dedicated RPC provider:
  • Alchemy: https://opt-sepolia.g.alchemy.com/v2/YOUR_KEY
  • Infura: https://optimism-sepolia.infura.io/v3/YOUR_KEY

Chain ID Reference

Next Steps