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