Run a Validator Node
A validator node participates in block production and consensus on the Shardeum testnet. It is used to test validator operations, node performance, and network behavior in a live environment.
Validator requirements and staking behavior on testnet may differ from mainnet.
Testnet configurations, chain IDs, staking requirements, and token availability may change. Always refer to the latest repository or official announcements.
1. System Requirements
- Operating System: Ubuntu 22.04 LTS
- CPU: 4 cores (8 threads recommended)
- RAM: 16GB
- Storage: 1TB NVMe SSD
- Network: 100 Mbps dedicated
- Dependencies: git, jq, curl, make, build-essential, pkg-config
- Go: Version 1.25+
Install dependencies:
Install Go:
2. Install Shardeum Node Binary
Clone the Shardeum EVM repository:
Fetch the latest release tags and check out the currently supported testnet release:
Replace REPLACE_WITH_SUPPORTED_TESTNET_TAG with the release tag supported by the currently running Shardeum testnet. Ensure the selected release includes the correct testnet genesis file and network configuration before building.
Build and install the binary (may take several minutes):
Add the Go bin directory to PATH:
Verify the installation:
3. Set Environment Variables
4. Initialize the Node
Ensure your validator keys and mnemonic are stored securely. Loss of your mnemonic may prevent recovery of the validator account. Also: Initialize only a new node directory. Do not rerun initialization with --overwrite on an existing validator without first securing its configuration, consensus keys, and signing state.
5. Copy Genesis File
Copy the testnet genesis file from the repository:
Verify that the genesis file matches the expected chain ID:
The command should return true. If verification fails, confirm that you are using the correct testnet genesis file before proceeding.
6. Start and Sync the Node
Monitor node logs:
Verify sync status:
Note: Initial sync may take time depending on hardware and network conditions.
7. Create the Validator Key
Ensure the node is connected to peers and wait until it is fully synced before proceeding.
Or recover:
Retrieve your validator address:
Store your mnemonic phrase securely. It is required for recovery. Also, the operator may be prompted for a keyring passphrase.
8. Fund Your Validator (Testnet)
Your validator account needs testnet SHM to stake and pay transaction fees. Use official testnet faucets or community distribution channels to obtain testnet SHM.
Verify balance:
9. Create Your Validator and Stake Testnet SHM
Get consensus key:
The command returns a JSON object containing the validator's consensus public key. Copy the value of its key field into the corresponding field in validator.json. Keep the @type field unchanged.
Create the validator configuration file:
Paste the following JSON template, replace the placeholder values, and save the file before creating the validator.
Adjust the stake amount based on current testnet requirements and your available testnet SHM balance.
Create validator:
Transaction fees: The command uses automatic gas estimation. If the transaction is rejected due to insufficient fees, specify
--gas-pricesusing a value accepted by the current testnet. Ensure your account holds enough testnet SHM to cover both staking and transaction fees.
10. Verify Validator Status
Look for:
- Status:
BOND_STATUS_BONDED - Voting power: greater than
0 - Jailed:
false
Note: A successfully registered validator may not immediately be bonded. BOND_STATUS_BONDED and positive voting power indicate active validator-set participation, whereas an unbonded validator may be waiting to enter the active set.
11. Optional: Run as a systemd Service
Check the installed Shardeum binary path:
Create the service file:
Example content:
Example configuration: The service below assumes that Shardeum was installed under
/rootand initialized usingNODE_ID="node0". Adjust the system user, binary path, configuration directory, and node-home path to match your installation. For production validators, a dedicated non-root user is recommended.
Replace <shardeumd-binary-path> with the absolute path returned by command -v shardeumd. If you selected a different node ID, update the --home path accordingly.
If the validator is already running from the manual startup command above, stop that process before starting the systemd service.
Reload systemd, then enable and start the service:
Check the service logs and confirm that the node's block height continues advancing:
Run the block-height command again after a short interval to verify progress.
12. Important Notes
- Testnet Chain ID:
shardeum-testnet - EVM Chain ID:
8119 - Network: Shardeum EVM Testnet (subject to resets)
- Testnet SHM has no real-world monetary value.
- Testnet configuration and validator state may be reset or changed between testnet phases.
- Staking, slashing, validator-set parameters, and other network settings may differ from mainnet.
Validator Setup Complete
Your Shardeum testnet validator is now configured and participating in the network when bonded.
You can use the testnet validator environment for:
- Validator operations and testing
- Upgrade and maintenance testing
- Performance monitoring
- Network participation experiments