IRIS Network IRISnet Blockchain: Docker guide

IRIS Network Blockchain is alive, Docker guide builds a node, add one account or recover, then be a Validator, delegate to one or just hold.

# Hello, IRIS hub the Blockchain for IRIS Network is here producing blocks now. This is about

Source?

Tips

sudo apt update
sudo apt upgrade -y
sudo apt-get install build-essentialdpkg-reconfigure locales
#check your user's per-process open file limit
ulimit -Sn
#OUT 1024​
​#increase username's per process limit to 4096
sudo vi /etc/security/limits.conf#Add this for updateusername soft nofile 4096

sudo reboot now
sudo apt-get update
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker $(whoami)
Client:
Version: 18.09.3
API version: 1.39
Go version: go1.10.8
Git commit: 774a1f4
Built: Thu Feb 28 06:40:58 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.3
API version: 1.39 (minimum version 1.12)
Go version: go1.10.8
Git commit: 774a1f4
Built: Thu Feb 28 05:59:55 2019
OS/Arch: linux/amd64
Experimental: false
docker run -p 26657:26657 -p 26656:26656 -v $HOME/.iris:/root/.iris irisnet/irishub:v0.14.1 unsafe-reset-all

Build and Run IrisHub with docker

#Create the folders for IRIS on local user, root its not recommended docker run -v $HOME/.iriscli:/root/.iriscli -v $HOME/.iris:/root/.iris irisnet/irishub:v0.14.1 iris init --chain-id=irishub --moniker=Write-node-name-here
sudo chown $(whoami) .iris/config
sudo chown $(whoami) .iris/data
cd .iris/config#Remove the test genesis.json file

rm genesis.json
#OUT rm: remove write-protected regular file 'genesis.json'?
yes
#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.jsonvi config.toml
i
#Add peers or seeds you know that can trust then.# Comma separated list of nodes to keep persistent connections to
persistent_peers = "2153d5d6d9394dc4c7959f061b67238d81154bdb@92.222.78.22:26656,6bf311e9ef45f05e354a3e59f314f4e5abd7a621@54.39.98.105:26666,1c16fb495df7aef4cd0f7d0dd5dc432dc693262c@54.39.98.105:26656,a731b038783ff2ecd337201c6f641f3a1637dd0b@51.89.4.203:26656,c81fd7a4a08fae22546cc621a6b8fc669e5d8534@139.99.75.84:26656"
#safe the file and start iris
esc
:wq!
docker run -it -p 26657:26657 -p 26656:26656 -v $HOME/.iris:/root/.iris irisnet/irishub:v0.14.1 iris start --trace --log_level "*:debug"
docker run -it -d -p 26657:26657 -p 26656:26656 -v $HOME/.iris:/root/.iris irisnet/irishub:v0.14.1 iris start
docker ps#output#CONTAINER IDb6d0577f8bf7#Stop the nodedocker stop b6d0577f8bf7#Now the IRIS node is stop.
docker run -it -d -p 26657:26657 -p 26656:26656 -v $HOME/.iris:/root/.iris irisnet/irishub:v0.14.1 iris start
docker ps#output#CONTAINER IDb6d0577f8bf7#Run for see the IPdocker inspect --format '{{ .NetworkSettings.IPAddress }}' b6d0577f8bf7#Output
172.17.0.2
Add this address to External address in config.tomlvi .iris/config/config.toml# Address to advertise to peers for them to dial
# If empty, will use the same port as the laddr,
# and will introspect on the listener or use UPnP
# to figure out the address.
external_address = "tcp://172.17.0.2:26656"
docker stop container-ID
docker run -it -d -p 26657:26657 -p 26656:26656 -v $HOME/.iris:/root/.iris irisnet/irishub:v0.14.1 iris start
docker run --network="host" irisnet/irishub:v0.14.1 iriscli status

Create one account or recover one old account from the fundraiser of Iris Network

docker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli keys add Key-name
docker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli keys add Key-name --recover
docker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli keys list
# keys add Key-name
# What is Key-name?
docker run --network="host" irisnet/irishub:v0.14.1 iriscli -h
docker run-network="host" irisnet/irishub:v0.14.1 iriscli bank -h
docker run --network="host" irisnet/irishub:v0.14.1 iriscli bank account iaa1hguh57kwwvv56k5kw8x3ll5kna9r3js4mzg9am --trust-node

Delegate to one validator or eleven, because

“remember not to put all your eggs in the same basket”

docker run --network="host" irisnet/irishub:v0.14.1 iriscli stake -h
docker run --network="host" irisnet/irishub:v0.14.1 iriscli stake delegate -h
docker run --network="host" irisnet/irishub:v0.14.1 iriscli stake validators
--node http://172.17.0.2:26657
--node http://172.17.0.2:26657
--node http://92.222.78.22:26657
docker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli bank account iaa1hguh57kwwvv56k5kw8x3ll5kna9r3js4mzg9am --node http://172.17.0.2:26657 --trust-node

Need delegate to the Operator Address for the validators you liked it.

docker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli stake delegate --chain-id=irishub --from=key-name --fee=0.4iris --amount=1iris --address-validator=iva1hguh57kwwvv56k5kw8x3ll5kna9r3js4wnz2qu

Sent and received $Iris tokens.

docker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli keys list
docker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli bank send --amount 1iris --chain-id irishub --fee 0.4iris --from key-name --to account-here-for-send
curl http://localhost:26657/status
curl http://localhost:26657/net_info

Withdrawal Rewards for delegations

docker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli distribution withdraw-rewards --from KEY-NAME --fee 0.4iris --chain-id=irishub --trust-node

Iris backup

Remember play the official wallet for IrisNet

Actually

Operator Address: iva1hguh57kwwvv56k5kw8x3ll5kna9r3js4wnz2qu
Description: {melea}

Only 8% Commission?

#StakeBank-meleaTrustdocker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli stake delegate --chain-id=irishub --from=key-name --fee=0.4iris --amount=1000iris --address-validator=iva18apxn7vzwvp5m3c4ed6lrsdvxu2fqgjvaw3l6s
#8866-meleaTrustdocker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli stake delegate --chain-id=irishub --from=key-name --fee=0.4iris --amount=1000iris --address-validator=iva1hguh57kwwvv56k5kw8x3ll5kna9r3js4wnz2qu
#BlockMachine-meleaTrustdocker run -it -v $HOME/.iriscli:/root/.iriscli irisnet/irishub:v0.14.1 iriscli stake delegate --chain-id=irishub --from=key-name --fee=0.4iris --amount=1000iris --address-validator=iva1n2tmjd8lvwtfplxaz2y75w2ysh0qlmqjute5rl