Prerequisites
Before running a full node, ensure you have:- A server with at least 4GB RAM and 200GB disk space
- Go 1.18 or higher installed (for binary build)
- Docker installed (for Docker deployment)
- Stable internet connection
Account Setup
Viction requires an account when running the node, even for full nodes. You need to either create a new account or import an existing one.Create a new account
If you don’t have an existing account, create a new one:This will generate a new account and store it in the specified keystore directory.
Running the Node
- Basic Setup
- Advanced Setup
- Testnet
To run a full node with default settings:This command will:
- Connect to the Viction mainnet (network ID 88)
- Sync in full mode
- Use the first account in your keystore
Key Parameters Explained
Path to your data directory where blockchain data will be stored
Path to your account’s keystore directory
Path to file containing your account’s password
Account index or address to unlock (use “0” for the first account)
Custom name for your node (appears in network stats)
Network identifier (88 for mainnet, 89 for testnet)
Blockchain sync mode: “fast”, “full”, or “light”. Default is “full”
Blockchain garbage collection mode: “full” or “archive”
Enable staking (required if you want to register as a masternode candidate)
P2P network listening port (default: 30303)
Enable the HTTP-RPC server
HTTP-RPC server listening address (use “0.0.0.0” to allow external connections)
HTTP-RPC server listening port (default: 8545)
Enable the WebSocket-RPC server
WebSocket-RPC server listening address
WebSocket-RPC server listening port (default: 8546)
Logging verbosity level (1-5, where 5 is most verbose)
Network Stats Reporting
To report your node statistics to the Viction network stats dashboard:your-node-name with your desired node name. The secret is:
Sync Modes
Fast Sync
Downloads blocks and verifies only the most recent state. Faster initial sync but less secure validation.
Full Sync
Downloads and validates all blocks from genesis. Slower but fully validates the entire chain.
Light Sync
Downloads only block headers. Requires trust in full nodes. Not recommended for production.
Garbage Collection Modes
Full Mode
Prunes old state data to save disk space. Suitable for most full nodes.
Archive Mode
Keeps all historical state data. Required for:
- Running an archive node
- Using
--store-rewardflag - Providing historical state queries
Monitoring Your Node
Once your node is running, you can:-
Check sync status via RPC:
- View logs to monitor node activity (verbosity level affects log detail)
-
Check peer count:
-
View network stats at https://stats.viction.xyz if you configured
--ethstats
Initial sync can take several hours depending on your hardware and network connection. The node must download and verify the entire blockchain.
Troubleshooting
Node won't sync
Node won't sync
- Check your internet connection
- Verify that port 30303 is not blocked by firewall
- Try adding bootnodes manually with
--bootnodesflag - Ensure you have enough disk space
RPC connection refused
RPC connection refused
- Verify RPC is enabled with
--rpcflag - Check that
--rpcaddris set to0.0.0.0for external access - Ensure firewall allows connections to RPC port
Account unlock failed
Account unlock failed
- Verify password file is correct
- Check keystore path is valid
- Ensure account exists in keystore directory
Out of memory errors
Out of memory errors
- Increase system RAM
- Use
--cacheflag to adjust memory allocation - Consider using fast sync instead of full sync
Next Steps
Configuration
Learn about all available configuration options
Run a Masternode
Upgrade your full node to a masternode