You can modify the basic startup parameters of your node via the node.ini file, but for advanced parametrisation, you may need to make changes to your node's configuration file. You can find the mainnet, testnet , devnet , and local network configuration files inside your /config folder:
/config/mainnet.config for mainnet,
/config/testnet.config for testnet,
/config/devnet.config for devnet, and
/config/local.config for local networks.
Use the template below to modify your configuration file and define parameters not directly accessible via your node.ini file:
# Configuration File Template for R5 Network
# [Node] - General node-level settings.
[Node]
# The working directory where blockchain data and node files are stored.
DataDir = "blockchain"
# The file name or path for the IPC endpoint.
IPCPath = "r5"
# Optional: Logging verbosity for the node (e.g., "trace", "debug", "info", "warn", "error", "crit").
# LogLevel = "info"
# [Node.P2P] - Peer-to-Peer network settings.
[Node.P2P]
# The P2P network listening address (including port).
ListenAddr = ":30337"
# List of bootstrap nodes (if you have any additional bootnodes).
BootstrapNodes = [
"enode://bootnode1@ip:port",
"enode://bootnode2@ip:port"
]
# A list of static nodes (always connect to these nodes).
StaticNodes = [
"enode://staticnode1@ip:30337",
"enode://staticnode2@ip:30337"
]
# Maximum peers the node can maintain.
MaxPeers = 75
# Set to true to disable automatic node discovery if you prefer only static connections.
NoDiscovery = false
# [Node.HTTP] - HTTP-RPC server settings (enable with caution).
[Node.HTTP]
Enabled = true
# HTTP server listening address and port.
ListenAddr = ":8545"
# CORS allowed domains (use a specific list for production environments).
Cors = ["*"]
# Virtual hosts (again, restrict in production).
VirtualHosts = ["*"]
# List of API modules enabled over HTTP.
Modules = ["admin", "debug", "eth", "miner", "net", "txpool", "personal", "web3"]
# [Node.WS] - WebSocket server settings.
[Node.WS]
Enabled = true
# WS server listening address and port.
ListenAddr = ":8546"
# Allowed origins for WebSocket connections.
Origins = ["*"]
# List of enabled API modules over WS.
Modules = ["admin", "debug", "eth", "miner", "net", "txpool", "personal", "web3"]
# [Logging] - Logging configurations for the node.
[Logging]
# The global logging level. Options: "trace", "debug", "info", "warn", "error", "crit".
Level = "info"
# Specify which modules to log (use "*" to log all modules).
Modules = ["*"]
# [Discovery] - Additional discovery settings.
[Discovery]
# Discovery protocol version, if applicable.
Version = 5