THE XDC Innovation LAB Explore the performance record
xone.shRun a node

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

KeyTypeDefaultFlagNotes
profilestring: "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_idintegerunset--networkidMust equal the chain id of the genesis in use, or start-up is refused.
datadirpathxone-data--datadirData directory.
identitystringunset--identityNode name.
override_genesispathunset--override.genesisGenesis JSON used instead of the profile genesis.
chainspecpathunset--chainspecFork table of a private chain. Chain ids 50 and 51 are refused.
ethstatsstring name:secret@host:portunset--ethstatsThe secret is replaced by <redacted> in dumpconfig output.
sync.modestring: "full" or "snap"full--syncmode"fast" is accepted and stored as "snap", with a notice.
sync.gcmodestring: "full"full--gcmode"archive" is refused in this build.
sync.snap_pinspathunset--snap.pinsPins file for snap sync.
sync.snap_gap_rpcURLunset--snap.gap-rpcUser info in the URL is replaced by <redacted> in dumpconfig output.
sync.state_diskbooleanfalse--state.diskRead head state from disk tables behind bounded caches.
sync.from_blockintegerunset--syncfromblockNone
sync.minimalbooleanfalse--minimalStart from the anchor of an imported snapshot.
sync.cache_mbinteger (MB)4096--cacheNone
sync.tx_historyinteger (blocks)2350000--history.transactions, --txlookuplimit0 keeps the whole chain.
p2p.portinteger30303--portNone
p2p.discovery_portintegersame as p2p.port--discovery.portNone
p2p.max_peersinteger50--maxpeersNone
p2p.no_discoverbooleanfalse--nodiscoverNone
p2p.natstringunset--natNone
p2p.bootnodeslist of stringsempty list--bootnodesA flag takes a comma-separated list.
http.enabledbooleanfalse--httpNone
http.addrstringlocalhost--http.addrNone
http.portinteger8545--http.portNone
http.apilist of strings["eth", "net", "web3"]--http.apiNone
http.corslist of stringsempty list--http.corsdomainNone
http.vhostslist of strings["localhost"]--http.vhostsNone
http.jwt_secretpathunset--rpc.jwtsecretThe flag sets this key and ws.jwt_secret together.
ws.enabledbooleanfalse--wsNone
ws.addrstringlocalhost--ws.addrNone
ws.portinteger8546--ws.portNone
ws.apilist of strings["eth", "net", "web3"]--ws.apiNone
ws.originslist of stringsempty list--ws.originsNone
ws.jwt_secretpathunset--rpc.jwtsecretSee http.jwt_secret.
authrpc.addrstringlocalhost--authrpc.addrNone
authrpc.portinteger8551--authrpc.portNone
authrpc.jwt_secretpathunset--authrpc.jwtsecretNone
authrpc.vhostslist of strings["localhost"]--authrpc.vhostsNone
ipc.disabledbooleanfalse--ipcdisableNone
ipc.pathpath<datadir>/xone.ipc--ipcpathNone
mining.minebooleanfalse--mineBlock production needs mining.keystore and mining.password_file.
mining.etherbasestringunset--miner.etherbaseNone
mining.password_filepathunset--passwordA password is never a flag or a key; only a file path is.
mining.keystorepathunset--keystoreNone
mining.unlocklist of stringsempty list--unlockNone
logging.verbosityinteger 0 to 53--verbosityThe flag refuses a value above 5.
logging.formatstring: "text" or "json"text--log.formatNone
logging.vmodulestring target=level,...empty string--log.vmodule, --vmoduleNone
metrics.enabledbooleanfalse--metricsNone
metrics.addrstring127.0.0.1--metrics.addrNone
metrics.portinteger6060--metrics.portNone
pprof.enabledbooleanfalse--pprofNone
pprof.addrstring127.0.0.1--pprof.addrNone
pprof.portinteger6060--pprof.portNone
limits.stop_timeout_msinteger5000none (file only)None
limits.service_stop_timeout_msinteger2000none (file only)None
limits.rpc_http_connectionsinteger256none (file only)None
limits.rpc_http_waitinginteger128none (file only)None
limits.rpc_http_in_flightinteger64none (file only)None
limits.rpc_ws_connectionsinteger128none (file only)None
limits.rpc_ipc_connectionsinteger16none (file only)None
limits.rpc_body_bytesinteger5242880none (file only)None
limits.rpc_batch_itemsinteger100none (file only)None
limits.rpc_response_bytesinteger20971520none (file only)None
limits.log_queue_linesinteger8192none (file only)None
limits.disk_stop_pctinteger2none (file only)None
limits.disk_stop_min_bytesinteger2147483648none (file only)None
limits.disk_resume_pctinteger3none (file only)None
limits.disk_resume_min_bytesinteger3221225472none (file only)None
limits.disk_exit_pctinteger1none (file only)None
limits.disk_exit_min_bytesinteger1073741824none (file only)None
limits.disk_sample_secsinteger5none (file only)None
01 /

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>.

02 /

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"
03 /

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.

SettingCombined withOutcomeSource 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 filea profile flag on the command lineThe 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=falseNo change: a false profile flag does not clear a profile.crates/xone-node/src/config.rs
A key in the filethe same setting as a flagThe 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 --networkida genesis with another chain idRefused 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.jwtsecrethttp.jwt_secret and ws.jwt_secret in the fileThe flag replaces both keys.crates/xone-node/src/config.rs
FOLLOW THE SOURCE

Reviewed 14 November 2026. Repository guides hold the current implementation details.

KEEP THE CURIOSITY GOING

Another way in.

Was this page helpful?

Feedback is public on GitHub and needs a GitHub account. Nothing is sent until you submit the issue there. Privacy notice. Page: /docs/config/. Reviewed version: 14 November 2026.

YOUR NEXT STEP

Build your way.

Choose an implementation to see its source-based build recipe.

Use the pinned Rust toolchain and platform build prerequisites in the repository.

git clone https://github.com/xOneSH/xone-rs.git
cd xone-rs
cargo build --locked --release -p xone
./target/release/xone --version

This recipe builds the client; it does not start a node. Mainnet operation is not yet qualified.

Open source guide