IRIS Network Validator, delegator Guide

Víctor | melea
Mar 2, 2019 · 6 min read
Image for post
Image for post

# Hello, IRIShub the Blockchain for IRISNET is here producing blocks now. This is about

a) Build and run a node.

b) Create an account or recover one.

c) Create a Validator or Delegate to others.

d) Play with the Rainbow wallet.

e) Be Happy.

All are tested in one VPS with 2 Cores, 8 Ram, Ubuntu 16.04

Image for post
Image for post

Options

A) Build from source (install Goland + Iris + tools)

Run Docker container (Install Docker) =

HERE

https://medium.com/@meleacrypto/iris-network-irisnet-blockchain-docker-guide-919f8b079936

A) Build from source

#Update setup local time and install tools

sudo apt update && apt upgrade -ysudo apt-get install build-essentialdpkg-reconfigure locales
Image for post
Image for post
Image for post
Image for post
#check your user's per-process open file limit
ulimit -Sn

​#increase username's per process limit
sudo vi /etc/security/limits.conf#Add this for updateusername soft nofile 2048

sudo reboot now
wget -c 'https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz' -O go1.12.4.linux-amd64.tar.gzsudo tar -C /usr/local -xzf go1.12.4.linux-amd64.tar.gzrm -rf go1.12.4.linux-amd64.tar.gzvi $HOME/.profile#Add this to your path#GOPATH="$HOME/go"
#PATH="$GOPATH/bin:$PATH"
#PATH="$PATH:/usr/local/go/bin"
Image for post
Image for post
#Safe the file and reload the profile
source $HOME/.profile
go version
#go version go1.12.4.linux-amd64

Update GO

#Remove old go 
sudo rm -rf /usr/local/go
#Download last go
wget -c 'https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz' -O go1.12.4.linux-amd64.tar.gz
#Descompress
sudo tar -C /usr/local -xzf go1.12.4.linux-amd64.tar.gz
#Remove useless files
rm -rf go1.12.4.linux-amd64.tar.gz
go version
#go version go1.12.4 linux/amd64

Update IRIS if already is installed

cd $GOPATH/src/github.com/irisnet/irishubgit fetch --allgit checkout v0.15.3make allIriscli version
#0.15.3-badd36f-1-mainnet

Install IrisHub

mkdir -p $HOME/go/binmkdir -p $GOPATH/src/github.com/irisnetcd $GOPATH/src/github.com/irisnetgit clone https://github.com/irisnet/irishubcd irishub && git checkout v0.15.3make alliris version
#0.15.3-badd36f-1-mainnet
iriscli version
#0.15.3-badd36f-1-mainnet
#Create folders and add mane at the node
iris init --home=.iris --chain-id=irishub --moniker=Node-Name-here
#Remove the test genesis.json file
cd .iris/config
rm genesis.json
#Copy some importants file
cp priv_validator.json $HOME
cp node_key.json $HOME#Get the genesis.json for IrisHubwget https://raw.githubusercontent.com/irisnet/betanet/master/config/genesis.json#Add peers or seeds you know that can trust then.
vi config.toml
# Comma separated list of nodes to keep persistent connections to
persistent_peers = "2153d5d6d9394dc4c7959f061b67238d81154bdb@92.222.78.22:26656,d464628c078cdf0009d850241fdc448d3e15f5f1@irissentry01.dokia.cloud:26656,cbcde5471e7bb951bb41bcdca414888ae5e05ceb@electra.iris.forbole.com:26656"
#safe the file and start irisiris start
Image for post
Image for post
Image for post
Image for post
iriscli status
Image for post
Image for post
iriscli keys add WRITE-ONE-NAME-HERE
Image for post
Image for post
iriscli keys add --recover (this-is=KEY-NAME)(WRITE-ONE-NAME-HERE)
Image for post
Image for post
iriscli keys list
Image for post
Image for post
--from=Key-name
What is Key-name?
Image for post
Image for post
iriscli -h
Image for post
Image for post
iriscli bank -h
Image for post
Image for post
iriscli bank account iaa1hguh57kwwvv56k5kw8x3ll5kna9r3js4mzg9am --trust-node
Image for post
Image for post

Delegate to one validator or eleven, because

iriscli stake -h
Image for post
Image for post
iriscli stake delegate -h
Image for post
Image for post
iriscli stake validators
Image for post
Image for post
iriscli stake delegate --chain-id=irishub --from=key-name --fee=0.4iris --amount=1iris --address-validator=iva1hguh57kwwvv56k5kw8x3ll5kna9r3js4wnz2qu
Image for post
Image for post

Sent and received $Iris tokens.

For received

iriscli keys list
Image for post
Image for post
Image for post
Image for post
iriscli bank send --amount 1iris --chain-id irishub --fee 0.4iris --from key-name --to account-here-for-send
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Withdrawal Rewards for delegations

iriscli distribution withdraw-rewards --from KEY-NAME --fee 0.4iris --chain-id=irishub --trust-node

Validator list here

This others command can help for status and peers connected

curl http://localhost:26657/status
curl http://localhost:26657/net_info

Iris backup

https://forum.irisnet.org/t/how-to-made-one-backup-file-from-database-iris/132?u=meleatrust

Remember to play the official wallet for IrisNet

www.irisnet.org

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Operator Address: iva1hguh57kwwvv56k5kw8x3ll5kna9r3js4wnz2qu
Description: {melea }
iriscli stake delegate --chain-id=irishub --from=key-name --fee=0.4iris --amount=1000iris --address-validator=iva1hguh57kwwvv56k5kw8x3ll5kna9r3js4wnz2qu

B) Run Docker container (Install Docker) =

HERE

https://medium.com/@meleacrypto/iris-network-irisnet-blockchain-docker-guide-919f8b079936

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store