Cover photo

Join PWR Chain Testnet

PWR Chain is a groundbreaking blockchain infrastructure designed to make blockchain technology accessible and beneficial for everyone, regardless of their technical expertise.

Hardware:

  • CPU: 1 vCPU

  • Memory: 1 GB RAM

  • Disk: 25 GB HDD or higher

  1. Join the Discord server, open a ticket based on the instructions, and get the validator role.

  2. Install PWR wallet, create an account, then claim faucet on bot-command channel.

  3. Instal and run the Validator:

    # Install requirements
    sudo apt update && sudo apt upgrade -y
    sudo apt install openjdk-21-jre-headless -y
    
    # check java version
    java --version
    
    mkdir pwr-chain
    cd pwr-chain
    
    # Install the validator node software and config file
    wget https://github.com/pwrlabs/PWR-Validator-Node/raw/main/validator.jar
    wget https://github.com/pwrlabs/PWR-Validator-Node/raw/main/config.json
    
    # Set up password (you can change it if you want)
    echo 'pwrP@sw0rd' > password
    
    # Open Ports
    sudo ufw allow 7621/udp
    sudo ufw allow 8231/tcp
    sudo ufw allow 8085/tcp
    

open a tmux session

tmux new -s pwr

export your private key from pwr-wallet and replace it with <private-key> in bellow command and run it.

sudo java -jar validator.jar --import-key <private-key> password
SERVER_IP=$(curl -s https://api.ipify.org)
sudo java -jar validator.jar password $SERVER_IP --compression-level 0

check validator rpc

 curl -s http://localhost:8085/chainId/ | jq

Become a Validator Node:

  • Initially, your node will synchronize with the blockchain but will not assume validator responsibilities until it possesses staked PWR Coins.

  • To obtain sufficient PWR Coins for staking, apply to become a testnet validator on our Discord server. Once approved, you can use our discord bot to claim 100k PWR to stake.

  • After claiming your coins, your node will initiate a transaction to enlist as a validator.

Update to the new version

jump into tmux session

tmux a -t pwr

stop the old validator with Ctrl + c and run below commands

cd pwr-chain

# Remove vlalidator.jar, config and blocks
sudo rm -rf validator.jar config.json

# Install new versions
wget https://github.com/pwrlabs/PWR-Validator-Node/raw/main/validator.jar
wget https://github.com/pwrlabs/PWR-Validator-Node/raw/main/config.json

# Run the validator
SERVER_IP=$(curl -s https://api.ipify.org)
sudo java -jar validator.jar password $SERVER_IP

Loading...
highlight
Collect this post to permanently own it.
sarox.eth logo
Subscribe to sarox.eth and never miss a post.