OPERATORS / CONFIGURATION
Every key,
and which one wins.
TOML configuration keys of the xone binary, read from crates/xone-node/src/config.rs in the published xOneRS source on main, with precedence and rejected combinations. Reading this page does not show that a build runs or that any client is ready for production.
On this page
73 of 73
| Key | Type | Default | Flag | Notes |
|---|---|---|---|---|
| profile | string: "mainnet", "apothem", "devnet" or "net2040" | unset | --xdcmainnet, --apothem, --xdcdevnet, --net2040, --network <name> | Unset runs the built-in XDC mainnet unless override_genesis or network_id is set. |
| network_id | integer | unset | --networkid | Must equal the chain id of the genesis in use, or start-up is refused. |
| datadir | path | xone-data | --datadir | Data directory. |
| identity | string | unset | --identity | Node name. |
| override_genesis | path | unset | --override.genesis | Genesis JSON used instead of the profile genesis. |
| chainspec | path | unset | --chainspec | Fork table of a private chain. Chain ids 50 and 51 are refused. |
| ethstats | string name:secret@host:port | unset | --ethstats | The secret is replaced by <redacted> in dumpconfig output. |
| sync.mode | string: "full" or "snap" | full | --syncmode | "fast" is accepted and stored as "snap", with a notice. |
| sync.gcmode | string: "full" | full | --gcmode | "archive" is refused in this build. |
| sync.snap_pins | path | unset | --snap.pins | Pins file for snap sync. |
| sync.snap_gap_rpc | URL | unset | --snap.gap-rpc | User info in the URL is replaced by <redacted> in dumpconfig output. |
| sync.state_disk | boolean | false | --state.disk | Read head state from disk tables behind bounded caches. |
| sync.from_block | integer | unset | --syncfromblock | None |
| sync.minimal | boolean | false | --minimal | Start from the anchor of an imported snapshot. |
| sync.cache_mb | integer (MB) | 4096 | --cache | None |
| sync.tx_history | integer (blocks) | 2350000 | --history.transactions, --txlookuplimit | 0 keeps the whole chain. |
| p2p.port | integer | 30303 | --port | None |
| p2p.discovery_port | integer | same as p2p.port | --discovery.port | None |
| p2p.max_peers | integer | 50 | --maxpeers | None |
| p2p.no_discover | boolean | false | --nodiscover | None |
| p2p.nat | string | unset | --nat | None |
| p2p.bootnodes | list of strings | empty list | --bootnodes | A flag takes a comma-separated list. |
| http.enabled | boolean | false | --http | None |
| http.addr | string | localhost | --http.addr | None |
| http.port | integer | 8545 | --http.port | None |
| http.api | list of strings | ["eth", "net", "web3"] | --http.api | None |
| http.cors | list of strings | empty list | --http.corsdomain | None |
| http.vhosts | list of strings | ["localhost"] | --http.vhosts | None |
| http.jwt_secret | path | unset | --rpc.jwtsecret | The flag sets this key and ws.jwt_secret together. |
| ws.enabled | boolean | false | --ws | None |
| ws.addr | string | localhost | --ws.addr | None |
| ws.port | integer | 8546 | --ws.port | None |
| ws.api | list of strings | ["eth", "net", "web3"] | --ws.api | None |
| ws.origins | list of strings | empty list | --ws.origins | None |
| ws.jwt_secret | path | unset | --rpc.jwtsecret | See http.jwt_secret. |
| authrpc.addr | string | localhost | --authrpc.addr | None |
| authrpc.port | integer | 8551 | --authrpc.port | None |
| authrpc.jwt_secret | path | unset | --authrpc.jwtsecret | None |
| authrpc.vhosts | list of strings | ["localhost"] | --authrpc.vhosts | None |
| ipc.disabled | boolean | false | --ipcdisable | None |
| ipc.path | path | <datadir>/xone.ipc | --ipcpath | None |
| mining.mine | boolean | false | --mine | Block production needs mining.keystore and mining.password_file. |
| mining.etherbase | string | unset | --miner.etherbase | None |
| mining.password_file | path | unset | --password | A password is never a flag or a key; only a file path is. |
| mining.keystore | path | unset | --keystore | None |
| mining.unlock | list of strings | empty list | --unlock | None |
| logging.verbosity | integer 0 to 5 | 3 | --verbosity | The flag refuses a value above 5. |
| logging.format | string: "text" or "json" | text | --log.format | None |
| logging.vmodule | string target=level,... | empty string | --log.vmodule, --vmodule | None |
| metrics.enabled | boolean | false | --metrics | None |
| metrics.addr | string | 127.0.0.1 | --metrics.addr | None |
| metrics.port | integer | 6060 | --metrics.port | None |
| pprof.enabled | boolean | false | --pprof | None |
| pprof.addr | string | 127.0.0.1 | --pprof.addr | None |
| pprof.port | integer | 6060 | --pprof.port | None |
| limits.stop_timeout_ms | integer | 5000 | none (file only) | None |
| limits.service_stop_timeout_ms | integer | 2000 | none (file only) | None |
| limits.rpc_http_connections | integer | 256 | none (file only) | None |
| limits.rpc_http_waiting | integer | 128 | none (file only) | None |
| limits.rpc_http_in_flight | integer | 64 | none (file only) | None |
| limits.rpc_ws_connections | integer | 128 | none (file only) | None |
| limits.rpc_ipc_connections | integer | 16 | none (file only) | None |
| limits.rpc_body_bytes | integer | 5242880 | none (file only) | None |
| limits.rpc_batch_items | integer | 100 | none (file only) | None |
| limits.rpc_response_bytes | integer | 20971520 | none (file only) | None |
| limits.log_queue_lines | integer | 8192 | none (file only) | None |
| limits.disk_stop_pct | integer | 2 | none (file only) | None |
| limits.disk_stop_min_bytes | integer | 2147483648 | none (file only) | None |
| limits.disk_resume_pct | integer | 3 | none (file only) | None |
| limits.disk_resume_min_bytes | integer | 3221225472 | none (file only) | None |
| limits.disk_exit_pct | integer | 1 | none (file only) | None |
| limits.disk_exit_min_bytes | integer | 1073741824 | none (file only) | None |
| limits.disk_sample_secs | integer | 5 | none (file only) | None |
Precedence#
Three layers apply, from weakest to strongest: the built-in default, the TOML file named by --config, and a flag given on the command line. A flag that is not given never overrides the file. The reviewed source reads no environment variable for configuration. Run xone dumpconfig with the same arguments to print the effective TOML; secrets are replaced by <redacted>.
Complete example#
A file for an Apothem follower. Section names are TOML tables. An unlisted key keeps its default. The file does not enable mining or signing. Check it with xone --config apothem.toml dumpconfig before a long run; this page does not claim that the check was run for you.
# xone --config apothem.toml
profile = "apothem"
datadir = "apothem-data"
[sync]
mode = "full"
cache_mb = 4096
[p2p]
port = 30303
max_peers = 50
bootnodes = []
[http]
enabled = true
addr = "localhost"
port = 8545
api = ["eth", "net", "web3"]
[logging]
verbosity = 3
format = "text"Conflicts and rejected settings#
Each row names the outcome in the code at the pinned commit. Where the source does not state an outcome, this page does not guess one.
| Setting | Combined with | Outcome | Source file |
|---|---|---|---|
| Two of --xdcmainnet, --apothem, --xdcdevnet, --net2040, --network on the command line | (none) | Refused: xone prints that they are mutually exclusive and exits 2. | bin/xone/src/main.rs |
| profile in the file | a profile flag on the command line | The flag wins. The check above counts only command-line flags, so no error is shown. | bin/xone/src/main.rs |
| profile in the file | --apothem=false | No change: a false profile flag does not clear a profile. | crates/xone-node/src/config.rs |
| A key in the file | the same setting as a flag | The flag wins, only when the flag was given on the command line. | bin/xone/src/main.rs |
| A key that Config does not define | (none) | Refused: invalid config file, exit 1. Config has deny_unknown_fields. | crates/xone-node/src/config.rs |
| network_id or --networkid | a genesis with another chain id | Refused at start-up with a network id mismatch. | crates/xone-node/src/datadir.rs |
| sync.gcmode or --gcmode set to archive | (none) | Refused: not implemented in this build. | crates/xone-node/src/config.rs |
| chainspec with chain id 50 or 51 | (none) | Refused: those chain ids have only their built-in spec. | crates/xone-node/src/datadir.rs |
| --verbosity above 5 | (none) | Refused by the flag with exit 2. The reviewed file loader does not check this key. | crates/xone-node/src/config.rs |
| --rpc.jwtsecret | http.jwt_secret and ws.jwt_secret in the file | The flag replaces both keys. | crates/xone-node/src/config.rs |
Reviewed 14 November 2026. Repository guides hold the current implementation details.
KEEP THE CURIOSITY GOING
Another way in.
Edit this page on GitHub opens the data definition (data/site-pages.js). GitHub may ask you to sign in. Report a correction opens a prefilled GitHub issue for this page.