Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Configuration and preferences

Your configuration is a file of instructions for the node: which services to connect to, which assets it can use, and where to save its state. Start with the file generated during setup, then review the choices that matter for your deployment with us.

You can use this page as a reference rather than learning every setting before you begin. The explanations below introduce each group; the expandable sections contain the exact field names for whoever is making the change.

In the Compose setup, the file is ~/nomad/data/config.toml. TOML is the format used to write these settings. Generate it with the Nomad image you’ll run. Keep the supplied network defaults and add your own backup and telemetry settings.

Apply a configuration change

Stop the service, save a copy, and edit the existing file:

cd ~/nomad
docker compose stop nomad
sudo cp -p data/config.toml data/config.toml.before-change
sudoedit data/config.toml
docker compose up -d nomad
docker compose logs --tail=100 nomad

Nomad reads TOML at startup. A restart picks up file changes; image or environment changes require docker compose up -d to recreate the container. Check health, execution, and backups afterward.

Edit fields in their existing tables rather than adding duplicate [eth] or [enclave] sections. Nomad has no general configuration-validation command. Follow the instructions for the setting you are changing and contact us if the node reports a configuration error.

Network and execution settings

The node needs a connection to Ethereum and to other Mirage nodes. An RPC endpoint is a service it asks for blockchain information and transaction receipts. Peers are the other nodes it communicates with. Builders help submit groups of transactions to Ethereum.

Keep shared settings in TOML so run, deposit, and withdrawal use the same network. We’ll help you confirm the addresses and services to use.

RPC, builders, and receipt polling
  • eth.geth_rpc: RPC endpoint for chain reads and receipts. nomad run --eth-rpc overrides it for run only.
  • eth.builder: builder endpoints, fee-recipient addresses, and premium limits. Keep the [[eth.builder]] entries we confirm for your deployment.
  • eth.polling_interval and eth.polling_max_attempts: receipt polling defaults of 4s and 30 attempts. These do not guarantee confirmation within two minutes.

The host resolves RPC and builder DNS before passing settings to SGX. Leave *_host overrides unset unless needed; stale pinned addresses can break connectivity.

Peers, ports, and capacity reporting
  • p2p.bootstrap: gossip peer multiaddresses, such as /ip4/ADDRESS/tcp/9000.
  • p2p.tcp: gossip port, default 9000.
  • enclave.nodes: approved IPv4 address-and-port entries for enclave key sharing. These are separate from gossip peers and are needed during startup and upgrades.
  • api.port: HTTP port for health, attestation, signals, and enclave key sharing, default 8000. Peers must be able to reach it.
  • reporting.url: destination for attested capacity reports, default https://api.mirageprivacy.com. Check with us before changing it.

Keep ports consistent with Compose mappings and the health check. Allow inbound peer traffic on TCP ports 8000 and 9000 in both the host and provider firewalls.

Trust and pricing configuration

These settings help the node check that instructions come from approved sources and allow for transaction costs. A signer key here is a public key used to verify a signed message. Gas is the unit Ethereum uses to measure the work in a transaction.

Mirage maintains the signer and pricing defaults. Leave them as supplied; node providers do not need to choose public keys or calculate gas estimates. If startup or quote validation reports a missing or incompatible setting, contact us for the correct configuration.

Signer and pricing fields
  • eth.compliance_signers authorizes screened deployment details.
  • eth.pricing_signers verifies quote economics.
  • eth.batch_gas_safety supplies gas_exec, delta_private, and delta_native in gas units.

The enclave seals the compliance signer set with its shared key. Contact us before rotating signers; deleting state to bypass a mismatch can put funds at risk.

Zero gas-profile values block priced batch planning. Lowering estimates to encourage execution can make an uneconomic transfer appear viable.

Liquidity and swap preferences

Liquidity means funds available to make transfers. A swap exchanges one asset for another, for example ETH for USDC. Slippage is the difference between the price expected for a swap and the price it actually receives; a limit helps control how much variation the node will accept.

The generated Ethereum mainnet configuration includes Uniswap V3, a service for exchanging assets, and allows USDC to be sold for ETH when fee reserves need replenishing. Supported transfer paths can also exchange ETH for a stablecoin when needed. Review reserves and swap limits with us before funding, and keep some ETH available for fees.

The existing settings below do not automatically convert every incoming ETH balance back to stablecoins. A preference for doing that after transfers is planned; see ETH exposure.

Accounts and ETH reserves
  • eth.num_accounts: operating pool setting, default 16. Values below 2 make run read-only. This does not set the deposit command’s account count.
  • eth.min_eth: gas-maintenance threshold, default 0.001 ETH per account. Actual transaction costs can exceed it.
  • eth.tiers.active_floor: ETH threshold for account promotion, default 0.01.
  • eth.tiers.reuse_cap: transfer and collect participation limit before an Active account becomes Draining, default 5. Discuss changes with us because reuse affects privacy.
Token reserves and gas-maintenance swaps

For each eth.token.<SYMBOL> entry:

  • address must be the exact token contract on the configured chain.
  • min_balance is a human-readable reserve for gas-maintenance swaps. It does not cap settlement spending.
  • swap allows the token to be sold for ETH during gas maintenance. Other swap paths have separate settings.

In eth.uniswap_v3:

  • max_slippage_bps is the local cap in basis points; 100 means 1%. Priced execution uses the stricter local or API-signed cap.
  • target_eth_amount is the gas-maintenance target output, default 0.005 ETH.
  • fee and eth_fee select token-to-token and token-to-WETH pool fee tiers. In Uniswap units, 3000 means 0.30%.

Swaps depend on available inventory and pool liquidity.

Optional CoW inventory routes

[[eth.cow.route]] entries allow asynchronous inventory swaps into fresh accounts. An empty list creates no new orders.

Each route specifies sell_token, buy_token, target_balance, max_sell_amount, and target_eoas. The two amounts are integer strings in token atomic units, unlike min_balance.

Orders spend node-owned inventory and can remain pending across restarts. Agree on limits and monitoring with us before enabling routes.

Storage, backups, and telemetry

Keep enclave.seal_path = "." with the standard mount. Changing it can cause Nomad to create unrelated accounts if it cannot find the existing state. Keep the production enclave paths at /opt/nomad/enclave.sgxs and /opt/nomad/enclave.sig.

Use the Amazon S3 setup for [backup.s3] and monitoring for OTLP. Telemetry is enabled through container environment variables, not an [otlp] TOML table.

Keep debug_keys empty, omit debug_mnemonic, and leave seed_eoas disabled on Ethereum mainnet. Never use --debug or --nosgx with real funds.

Configuration paths outside Compose

Nomad reads ~/.config/nomad/config.toml by default. Relative enclave, signature, sealed-state, and signal-log paths resolve against the configuration directory.