Overview
This page provides a comprehensive reference for all command-line flags available in thetomo command. Flags are organized by category for easy navigation.
General Settings
Data directory for the databases and keystore. This is where all blockchain data, accounts, and node configuration are stored.
Directory for the keystore. By default, keystores are stored inside the datadir.
Custom node name to identify your node on the network.
Network identifier (integer, 89=Viction Mainnet).
Connect to the Viction test network.
Account Management
Comma-separated list of accounts to unlock at startup. Can be addresses or account indices.
Password file to use for non-interactive password input. File should contain one password per line.
Sync Modes
Blockchain sync mode: “fast”, “full”, or “light”.
- fast: Downloads blocks and states, validates recent transactions
- full: Downloads all blocks and executes all transactions
- light: Downloads block headers only
Enable fast syncing through state downloads (shorthand for —syncmode fast).
Enable light client mode.
Blockchain garbage collection mode: “full” or “archive”.
- full: Prunes old state data (recommended)
- archive: Keeps all historical state data
Network Settings
Network listening port for P2P connections.
Maximum number of network peers. Set to 0 to disable networking.
Maximum number of pending connection attempts. Defaults are used if set to 0.
Comma-separated enode URLs for P2P discovery bootstrap.
Comma-separated enode URLs for P2P v4 discovery bootstrap.
Comma-separated enode URLs for P2P v5 discovery bootstrap.
P2P node key file path.
P2P node key as hex (for testing purposes).
NAT port mapping mechanism: any, none, upnp, pmp, extip:<IP>.
Disables the peer discovery mechanism (manual peer addition only).
Enables the experimental RLPx V5 (Topic Discovery) mechanism.
Restricts network communication to the given IP networks (CIDR masks).
RPC Settings
Enable the HTTP-RPC server.
HTTP-RPC server listening interface.
HTTP-RPC server listening port.
API modules offered over the HTTP-RPC interface. Comma-separated list.Available modules: eth, net, web3, personal, admin, debug, miner, txpool
Comma-separated list of domains from which to accept cross-origin requests (browser enforced).
Comma-separated list of virtual hostnames from which to accept requests (server enforced). Accepts ’*’ wildcard.
Timeout for RPC HTTP handlers in seconds.
WebSocket Settings
Enable the WebSocket-RPC server.
WebSocket-RPC server listening interface.
WebSocket-RPC server listening port.
API modules offered over the WebSocket-RPC interface.
Origins from which to accept WebSocket requests.
IPC Settings
Disable the IPC-RPC server.
Filename for IPC socket/pipe within the datadir (explicit paths escape it).
Staking/Mining Settings
Enable staking (masternode block creation).
Number of CPU threads to use for staking.
Public address for block mining rewards (default = first account created).
Minimal gas price to accept for mining a transaction (in Wei).
Target gas limit sets the artificial target gas floor for blocks to mine.
Transaction Pool Settings
Disables price exemptions for locally submitted transactions.
Disk journal for local transaction to survive node restarts.
Time interval to regenerate the local transaction journal.
Minimum gas price limit to enforce for acceptance into the pool.
Price bump percentage to replace an already existing transaction.
Minimum number of executable transaction slots guaranteed per account.
Maximum number of executable transaction slots for all accounts.
Maximum number of non-executable transaction slots permitted per account.
Maximum number of non-executable transaction slots for all accounts.
Maximum amount of time non-executable transactions are queued.
Performance Tuning
Megabytes of memory allocated to internal caching (min 16MB / database forced).
Percentage of cache memory allowance to use for database I/O.
Percentage of cache memory allowance to use for trie pruning.
TomoX (DEX) Settings
Enable the TomoX protocol.
Data directory for the TomoX databases.
Database engine for TomoX: “leveldb” or “mongodb”.
Database name for TomoX.
Connection URL to database if dbEngine is mongodb. Format: Host:port. Multiple instances separated by comma.
Replica set name if Master-Slave MongoDB setup is used.
Console Settings
JavaScript root path for
loadScript in the console.Execute JavaScript statement and exit (non-interactive mode).
Comma-separated list of JavaScript files to preload into the console.
Logging and Monitoring
Reporting URL of an ethstats service. Format: nodename:secret@host:port
Enable metrics collection and reporting.
Enable expensive metrics collection and reporting.
Enable stand-alone metrics HTTP server listening interface.
Metrics HTTP server listening port.
Advanced Settings
Reduce key-derivation RAM & CPU usage at some expense of KDF strength.
Always commit transactions immediately.
Store reward information to file.
Rollback chain to specified block hash.
Number of blocks to rewind from the current head.
Number of blocks to re-execute during state regeneration.
Record information useful for VM and contract debugging.
Whisper Settings
Enable Whisper protocol.
Maximum message size accepted (in bytes).
Minimum POW (Proof of Work) accepted.
Common Flag Combinations
Full Masternode Setup
Testnet Node
Archive Node
Light Client
See Also
- tomo Command - Main command overview
- Account Commands - Account management
- Console Commands - Interactive console usage