This documentation outlines the various configuration options for nodes in the XRPL EVM sidechain project. Configuring a node correctly is essential for ensuring its intended role within the network. Below, we categorize configuration options into historical data storage, API exposure, and peer exchange configurations.
Use this quick map before editing settings:
| Setting | File |
|---|---|
Tendermint/CometBFT RPC ([rpc].laddr, port 26657) | config.toml |
P2P peer exchange ([p2p]) | config.toml |
Pruning (pruning) | app.toml |
Cosmos API / gRPC ([api], [grpc]) | app.toml |
Ethereum JSON-RPC / WS ([json-rpc]) | app.toml |
Nodes can be configured to store historical data in different ways based on their needs:
Stores all data from the genesis block. Use it to query historical state or to analyze the chain. An archive node has to sync from genesis: snapshots and state sync only provide recent state.
Configuration in app.toml:
pruning = "nothing"
min-retain-blocks = 0Stores only the most recent state and minimal historical data to save disk space.
Configuration in app.toml:
pruning = "default"Keeps only the 2 latest application states (pruning every 10 blocks). This is the smallest footprint, but the node cannot serve queries for past heights.
Configuration in app.toml:
pruning = "everything"Nodes can expose one or more APIs depending on their required functionality:
Provides Tendermint-specific API for consensus and block queries.
Configuration in config.toml:
[rpc]
laddr = "tcp://0.0.0.0:26657"Enables gRPC interface for Cosmos-based interactions.
Configuration in app.toml:
[grpc]
enable = true
address = "0.0.0.0:9090"Provides Cosmos REST API for interaction with the blockchain.
Configuration in app.toml:
[api]
enable = true
address = "tcp://0.0.0.0:1317"Exposes Ethereum-compatible JSON-RPC and WS for EVM interaction.
Configuration in app.toml:
[json-rpc]
enable = true
address = "0.0.0.0:8545"
ws-address = "0.0.0.0:8546"Nodes can be configured for different peer exchange roles:
Stores a large address book that other peers can use to discover network participants but does not participate in consensus.
Configuration in config.toml:
[p2p]
max_num_inbound_peers = 200
max_num_outbound_peers = 500
pex = true
seed_mode = trueActs as an intermediary layer, providing additional security to validators by isolating them from direct peer connections.
Configuration in config.toml:
[p2p]
unconditional_peer_ids = "validator_node_id"
private_peer_ids = "validator_node_id"
addr_book_strict = false
pex = trueOperates in isolation, connecting only to pre-specified peers.
Configuration in config.toml:
[p2p]
persistent_peers = "sentry_node_ids"
private_peer_ids = ""
pex = false
[consensus]
double_sign_check_height = 10The following table provides example configurations for different node roles:
| Role | Historical | API Configuration | Peer Exchange |
|---|---|---|---|
| Validator | Pruned Node | No API | Private |
| Ethereum API | Pruned Node | Ethereum JSON RPC and WS | Sentry |
| Cosmos API | Pruned Node | Cosmos gRPC and Cosmos RPC | Sentry |
| Seed Node | Full Pruned Node | No API | Seed |
| Historical node | Full history | No API | Private |
For further and more advanced configurations, please refer to the Configuration Reference.