VIPER
Viper Node Setup Guide
Welcome to the Viper Node Setup Guide! This comprehensive walkthrough will assist you in configuring your server to run a Viper node, enabling you to participate in the network.
Hardware Requirements
Prerequisites
Configure your DNS if you have a domain.
Login with SSH
replace mynode.vipernet.xyz
with your own DNS name or IP address
Set Hostname
Open the
/etc/hostname
file with thenano
editor:
Change the localhost value to your Hostname, e.g., mynode.vipernet.xyz
Save the file and exit the editor (press
Ctrl+O
,Enter
,Ctrl+X
).Reboot the server:
Create New User
Create a new user named
viper
and add it to thesudo
group:
Switch to the new user:
Install Dependencies
Viper Setup
Create a directory for the Vipernet network:
Clone the Vipernet binaries repository:
Copy the binary to
/usr/local/bin/viper
(replace$YOUR_ARCH_TYPE_BINARY
with the actual file name, e.g.,viper_linux_amd64
):
Viper Configuration
Create a new account:
Create a validator (replace
address
with the address obtained from the previous command):
Fund your account by requesting test tokens from the
#🤑|req-tokens
channel at Viper Network Discord server and wait till the tx gets included in the block (It may take a couple of mintues for the amount to reflect)Update the Tendermint configuration:
Generate chains (enter the
chain ID
and theURL
of the non-native chain node when prompted):
Enter the ID of the Viper network:
Enter the URL of the network identifier.
Enter y
if you want to add non-native chains (Enter "n" for now)
For Non-Native Chains:
When prompted, enter the chain ID. This is a unique identifier for the blockchain network you want to service through the Viper node. For example, if you want to service the Ethereum network, you would enter the chain ID of Etherereum.
Next, when prompted, enter the URL of the non-native chain node you wish to service through the Viper node. This should be the RPC endpoint of the blockchain node you want to connect to.
Repeat steps 2 and 3 for each additional non-native chain you want to service through the Viper node.
Once you have entered all the required chain IDs and URLs, the command will generate the necessary configuration files for those chains within the Viper node.
Generate the geozone (enter the
geo ID
when prompted):
Change to the
~/.viper/config
directory:
Download the genesis file:
Increase ulimit
Create Systemd Service
Create a systemd service file for the Vipernet node:
Copy and paste the following content into the file:
Save the file and exit the editor (press
Ctrl+O
,Enter
,Ctrl+X
).Reload the systemd daemon:
Enable and start the
viper.service
service:
SSL Configuration
Obtain an SSL certificate using Certbot (replace
$HOSTNAME
with your actual hostname):
Nginx Configuration
Open the Nginx configuration file:
Copy and paste the following content into the file (replace
$HOSTNAME
with your actual hostname):
Save the file and exit the editor (press
Ctrl+O
,Enter
,Ctrl+X
).Stop the Nginx service:
Remove the default Nginx configuration:
Create a symbolic link to the new Vipernet configuration:
Start the Nginx service:
UFW Configuration
Enable UFW:
Deny incoming traffic by default:
Allow SSH:
Allow HTTP:
Allow HTTPS:
Allow Vipernet-specific port (8081):
Allow Vipernet-specific port (26656):
Stake
Stake your validator (replace addr
, amount
, chainIDs
(comma seperated; for, e.g., 0001,0002,0003) and https://hostname:443
with your own values). When staking, you need to specify the amount
in the smallest unit of VIPR, which is uVIPR. 1 VIPR is equal to 1,000,000 uVIPR. The minimum stake amount required is 10,000 VIPR, but it's recommended to stake around 11,000 VIPR.
Note: Replace hostname
with your actual hostname
Last updated