Run an RPC Node
Shardeum mainnet is scheduled to undergo the v1.2.2 upgrade at block height 8,680,250, estimated for December 1, 2026, at 06:30 UTC. Network operations will temporarily halt during the upgrade. The instructions on this page currently correspond to mainnet v1.2.0 and will be updated following the upgrade.
An RPC node provides JSON-RPC and WebSocket endpoints for developers, dApps, indexers, infrastructure providers, and partners. RPC nodes verify chain data but do not participate in consensus or require staking.
Do not expose the node's CometBFT RPC endpoint publicly. Only expose application RPC endpoints that are required for your deployment, and protect them with appropriate access controls and rate limiting.
1. System Requirements
Recommended:
- OS: Ubuntu 22.04 LTS
- CPU: 4 cores
- RAM: 8–16 GB
- Storage: 500 GB+ NVMe SSD
- Network: High-bandwidth connection
- Dependencies: git, jq, curl, make, build-essential, pkg-config
- Go: v1.25+
Install dependencies:
Install Go:
2. Install Shardeum Node Binary
Add the Go bin directory to PATH:
Verify the installation:
3. Environment Variables
4. Initialize the Node
5. Copy Genesis File
6. Configure Pruning
For a typical RPC node, custom pruning helps manage storage while retaining recent state.
Edit:
$HOME/.mainnet/$NODE_ID/config/app.toml
Set:
If you require complete historical state, run an Archive Node instead. Archive nodes disable pruning using --pruning nothing.
7. Enable JSON-RPC before the first start
Edit:
$HOME/.mainnet/$NODE_ID/config/app.toml
Under the existing [json-rpc] section, set:
This configuration keeps JSON-RPC and WebSocket access local to the server.
For public RPC services, use an HTTPS/WSS reverse proxy with appropriate access controls, rate limiting, and monitoring. Direct public binding requires additional security precautions.
8. Start and Sync the Node
Before You Start: Syncing a New Node From Genesis After a State-Breaking Upgrade
Skip this section if your node is already synced past upgrade height
8,390,300or if you are restoring from a compatible post-upgrade snapshot.
For new RPC nodes, state synchronization from a compatible post-upgrade snapshot is recommended, provided suitable snapshot-serving peers and trusted RPC endpoints are available.
For state synchronization prerequisites and configuration guidance, see State Synchronization.
The Cosmovisor instructions below are for nodes syncing from genesis.
When syncing from genesis, the node must use the binary corresponding to each part of the chain history:
- Use
v1.0.2from genesis until upgrade height7,927,860. - At height
7,927,860, Cosmovisor switches tov1.1.0. - Continue with
v1.1.0until upgrade height8,390,300. - At height
8,390,300, Cosmovisor switches tov1.2.0.
Use Cosmovisor to manage both historical binary transitions automatically.
Set Up Cosmovisor and the Required Binaries
Install Cosmovisor:
Cosmovisor uses the node's home directory to store and manage the binaries required for each part of the chain history. Set the required environment variables:
Run the remaining Cosmovisor commands in the same shell session so these environment variables remain available.
Download the required Shardeum binaries from the official releases:
Important: Use the current
v1.0.2binary from the official release. An earlierv1.0.2binary published before October 16, 2026 cannot replay Shardeum mainnet from genesis.
Verify the SHA-256 checksums:
All three commands should return OK.
Make the binaries executable:
Initialize Cosmovisor with v1.0.2 as the genesis binary:
Add v1.1.0 using the exact upgrade name:
Add v1.2.0 using its exact upgrade name:
Verify that all three binaries are in place:
Cosmovisor starts with v1.0.2 and automatically switches to v1.1.0 at height 7,927,860, then to v1.2.0 at height 8,390,300, using the corresponding on-chain upgrade plans.
Start a Genesis Sync With Cosmovisor
If you followed the genesis-sync instructions above, start the node through Cosmovisor:
Start the Node Normally
If your node is already synced past height 8,390,300 or has been restored from a compatible post-upgrade snapshot, confirm that shardeumd version reports v1.2.0 before starting the node normally.
Do not use this startup method with the current binary to sync directly from genesis.
Monitor:
Or
Wait until the node is fully synced.
9. Optional: Enable gRPC & REST Endpoints
Edit:
$HOME/.mainnet/$NODE_ID/config/app.toml
Under the existing [grpc] section, set:
Under the existing [api] section, set:
Enable these only if required by your infrastructure. Restart the node after making changes.
These endpoints are bound to localhost by default. For external access, expose them through trusted infrastructure with appropriate network restrictions and security controls.
10. Firewall Configuration
Before enabling UFW, allow SSH access so you do not lock yourself out of the server:
Allow P2P traffic:
If JSON-RPC or WebSocket services are intentionally bound to an externally reachable interface, allow only the ports required for your deployment:
For production deployments using a reverse proxy, expose the proxy's HTTPS port instead and keep backend RPC ports restricted.
The optional gRPC and REST endpoints are bound to localhost in this guide, so their ports do not need to be opened publicly.
If external access is required, configure the appropriate network binding and restrict access to trusted systems or private networks. Avoid exposing these endpoints directly to the public internet.
After configuring the required firewall rules, enable UFW and verify its status:
Do not expose port 26657 (CometBFT RPC) publicly. Restrict sensitive endpoints to localhost or trusted systems, and protect public RPC endpoints with suitable rate limiting and reverse-proxy controls.
11. Run as a systemd Service (Recommended)
For production RPC infrastructure, use systemd to manage automatic startup, process recovery, and centralized logging.
See Using systemd Service for configurations covering both direct shardeumd execution and Cosmovisor.
When adapting the examples for your RPC node:
- Replace the example node home
/root/.mainnet/node0with/root/.mainnet/rpcnode. - Use the correct binary paths, system user, and environment variables.
- Follow the RPC configuration and startup settings established in this guide.
- Use a distinct service name and non-conflicting ports if running multiple nodes on the same server.
Important: Stop any manually running node process before starting it through systemd. Never run two processes against the same node home directory.
After starting the service, verify that the node's block height is advancing and that the required RPC endpoints are responding.
12. Scaling RPC Nodes (Optional)
For high-traffic dApps:
- Use load balancers such as Nginx, HAProxy, or AWS ELB
- Run multiple RPC nodes behind a reverse proxy
- Rate-limit requests to avoid overload
- Separate public RPC from private infrastructure RPC
- Run dedicated indexing services in parallel where required
13. Useful Commands
Check sync:
Check network peers:
Check logs:
Use the systemd service name configured for your node. The Advanced Operations example uses shardeumd. If you created a separate service such as shardeumd-rpc, use that name instead.
Query RPC:
Verify the EVM chain ID:
Expected chain ID: 0x1fb6 (8118).
Check synchronization health:
Confirm that the block height continues advancing and approaches the latest mainnet height.
Important: An RPC endpoint responding successfully does not guarantee that the node is processing new blocks. Always verify block-height progression after an upgrade.
14. Troubleshooting
RPC endpoint not responding
- Confirm RPC enabled in
app.toml - Confirm IP binding is correct
- Check firewall rules
- Check node is fully synced
High latency
- Check CPU, memory, disk I/O, and network utilization
- Review RPC request volume and rate limits
- Confirm the node remains fully synced
- Scale across additional RPC nodes if required
Node stuck catching up
- Check peers
- Restart node
- Verify time sync (NTP)
- If syncing from genesis, verify that Cosmovisor is configured with all three historical binaries and both upgrade plans.
- Verify the expected binary version for the node's current block height.
- If errors such as
auth failureorwrong Block.Header.AppHashoccur, inspect peer connections, binary checksums, and node logs. If unresolved, share the relevant logs in the validator support channel.
RPC Node Setup Complete
Your RPC node is operational and serving JSON-RPC / WebSocket traffic for the Shardeum EVM mainnet.
Use this setup for:
- dApp backend integrations
- Indexing services
- Developer environments
- High-availability RPC infrastructure