Installation Node

  • Network Type: Testnet
  • Chain-id: indigo-1
  • Current Node version: v0.9.0
  • Hardware requirements

    The following requirements are recommended for running Defund:

    • 4 or more physical CPU cores
    • At least 200GB of SSD disk storage
    • At least 8GB of memory (RAM)
    • At least 100mbps network bandwidth

    Install dependencies Required

    sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y

    Install go

    We are gonna use GO Version 1.21.1 If you already have GO installed you can skip this

    ver="1.21.1"
    cd $HOME
    wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
    sudo rm -rf /usr/local/go
    sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
    rm "go$ver.linux-amd64.tar.gz"
    echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
    source ~/.bash_profile
    go version

    Install binary

    cd $HOME
    curl -L https://storage.googleapis.com/pryzm-resources/pryzmd-0.9.0-linux-amd64.tar.gz | tar -xvzf - -C $HOME
    chmod +x pryzmd
    mv pryzmd $HOME/go/bin/

    Verify that you’ve installed sged successfully

    pryzmd version

    Initialize Node

    Please change <MONIKER> To your own Moniker.

    pryzmd init $MONIKER --chain-id indigo-1
    pryzmd config chain-id indigo-1
    pryzmd config keyring-backend test

    Download Genesis file and addrbook

    • Genesis
    wget -O $HOME/.pryzm/config/genesis.json https://raw.githubusercontent.com/vinjan23/Testnet.Guide/main/Pryzm/genesis.json
    • Addrbook
    wget -O $HOME/.pryzm/config/addrbook.json https://raw.githubusercontent.com/vinjan23/Testnet.Guide/main/Pryzm/addrbook.json

    Configure Seeds and Peers

    seeds="ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@testnet-seeds.polkachu.com:24856,d1d43cc7c7aef715957289fd96a114ecaa7ba756@testnet-seeds.nodex.one:23210"
    sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.pryzm/config/config.toml
    peers="e93412f2238c141e87f1b25a38cb4d9868503c95@2a01:4f9:1a:a243::2:15656,1aeb2ea459879a0f2cc5f2907af7bd5a7ab9bd9b@65.109.113.233:24856,013efc1bb66c696aada395019e8cdf57f5ccc106@85.10.211.215:27722,ef4dcd5de768c96c0bc4d2b1155e3b66dcd18cb4@18.220.12.210:26656,d9a846e2632764c44577ce71c859c4167b8c5c18@178.128.197.47:26656,89f6a47c6befc303e460886e4c4a10039119e961@15.204.220.126:26656,be464badd36b959fa2ce84a3d65fabd1e3774f84@144.217.68.182:24856,9515a13bbdeb233eb59efd6e8db892ac46e5bac5@142.132.153.6:56656"
    sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.pryzm/config/config.toml
    sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0upryzm\"|" $HOME/.pryzm/config/app.toml

    config pruning

    pruning="custom" && \
    pruning_keep_recent="100" && \
    pruning_keep_every="0" && \
    pruning_interval="10" && \
    sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.pryzm/config/app.toml && \
    sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.pryzm/config/app.toml && \
    sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.pryzm/config/app.toml && \
    sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.pryzm/config/app.toml

    create service file and start node

    Create service file Create a pryzmd.service file in the /etc/systemd/system folder with the following code. You can change USER with your Linux user name. You need sudo previlege to do this step.

    sudo tee /etc/systemd/system/pryzmd.service << EOF
    [Unit]
    Description=pryzm
    After=network-online.target
    
    [Service]
    User=$USER
    ExecStart=$(which pryzmd) start
    RestartSec=3
    Restart=on-failure
    LimitNOFILE=65535
    
    [Install]
    WantedBy=multi-user.target
    EOF
    • Enable Service and Start Node
    sudo systemctl daemon-reload
    sudo systemctl enable pryzmd
    sudo systemctl restart pryzmd
    sudo journalctl -u pryzmd -f -o cat

    Create Validator

    Heads up to the Cheat Sheets to create validator