Giter Site home page Giter Site logo

neutaro's Introduction

Why you should care about Neutaro

Neutaro is closely working with Timpi to help them create the first truly decentralized search engine! On Neutaro you can claim your rewards for contributing to Timpi and you can vote on different proposals affecting Timpi. These proposals will for example be about the ethical standpoint of the Timpi search engine.

Introduction

You can be a part of Neutaro by having tokens and delegating those, running a node or by becoming a validator.

Delegating

By delegating your tokens to a validator you increase the amount of staked tokens they have and by that their voting power. In return you get a cut of their rewards based on the amount you have delegated. You can delegate to a Validator using the command. 1.000.000 uneutaro is 1 NTMPI. if you want to stake 100 NTMPI tokens you put 100000000uneutaro into the command. The example is 1 token.

Neutaro tx staking delegate ValidatorAddress 1000000uneutaro --from YOURWALLET --chain-id Neutaro-1 --node https://rpc1.neutaro.tech:443

Running a node

Running a node means that you run the chains binary. Follow these steps to create a Validator that runs as a service on linux.

First we update linux.

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

Installing Go v1.20.4

ver="1.20.4" 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" >> $HOME/.bash_profile source $HOME/.bash_profile

Check the go version

go version

Then we install the Neutaro Binary

cd $HOME git clone https://github.com/Neutaro/Neutaro cd Neutaro/cmd/Neutaro/ go build

installing cosmovisor

mkdir -p $HOME/.Neutaro/cosmovisor/genesis/bin mv $HOME/Neutaro/cmd/Neutaro/Neutaro $HOME/.Neutaro/cosmovisor/genesis/bin/ sudo ln -s $HOME/.Neutaro/cosmovisor/genesis $HOME/.Neutaro/cosmovisor/current sudo ln -s $HOME/.Neutaro/cosmovisor/current/bin/Neutaro /usr/local/bin/Neutaro cd $HOME/Neutaro/ go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]

Now we configure the node

MONIKER=YOURMONIKER Neutaro init $MONIKER --chain-id Neutaro-1 Neutaro config chain-id Neutaro-1 Neutaro config keyring-backend os

url -Ls curl http://154.26.153.186/genesis.json > $HOME/.Neutaro/config/genesis.json

PEERS="$(curl -sS http://217.31.104.223:26657/net_info | jq -r '.result.peers[] | "(.node_info.id)@(.remote_ip):(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')" sed -i -e "s|^persistent_peers =.|persistent_peers = "$PEERS"|" $HOME/.Neutaro/config/config.toml sed -i -e "s/^filter_peers =./filter_peers = "true" /" $HOME/.Neutaro/config/config.toml

Here you can adjust the minimum-gas-price. Currently most use 0

sed -i -e "s|^minimum-gas-prices =.|minimum-gas-prices = "0uneutaro"|" $HOME/.Neutaro/config/app.toml

Configuring pruning

You could add whatever you like. These options mainly decide how much storage the Node will use.

PRUNING="custom" PRUNING_KEEP_RECENT="100" PRUNING_INTERVAL="19" sed -i -e "s/^pruning =./pruning = "$PRUNING"/" $HOME/.Neutaro/config/app.toml sed -i -e "s/^pruning-keep-recent =./pruning-keep-recent =
"$PRUNING_KEEP_RECENT"/" $HOME/.Neutaro/config/app.toml sed -i -e "s/^pruning-interval =./pruning-interval =
"$PRUNING_INTERVAL"/" $HOME/.Neutaro/config/app.toml

Create Neutaro service. Copy/paste everything from sudo to EOF.

sudo tee /etc/systemd/system/Neutaro.service > /dev/null << EOF [Unit] Description=Neutaro Node Service After=network-online.target

[Service] User=$USER ExecStart=$(which cosmovisor) run start Restart=on-failure RestartSec=10 LimitNOFILE=65535 Environment="DAEMON_HOME=$HOME/.Neutaro" Environment="DAEMON_NAME=Neutaro" Environment="UNSAFE_SKIP_BACKUP=true"

[Install] WantedBy=multi-user.target EOF

Enabling the Service

sudo systemctl daemon-reload sudo systemctl enable Neutaro

Starting the Service/ the Node

sudo systemctl restart Neutaro

To view the service use

sudo journalctl -fu Neutaro -o cat use ctrl + c to exit the log

Check the sync status

Neutaro status 2>&1 | jq .SyncInfo

Proceed once it's synced

you will be asked for your memonic on this step. You can also remove the --recover flag and create a new wallet and send funds to this new wallet from your main wallet Neutaro keys add WALLET --keyring-backend os --recover

sending the becomming a validator transaction

once you have a funded wallet on the node send this, but make sure to check all the parameters to see if they are fine for you! Neutaro tx staking create-validator --amount=1500000uneutaro --pubkey=$(Neutaro tendermint show-validator) --moniker=$MONIKER --identity="79E14FB4E5BE4F30" --chain-id=Neutaro-1 --from WALLET --keyring-backend os --commission-rate="0.10" --commission-max-rate="0.20" --commission-max-change-rate="0.01" --min-self-delegation="1000000" --gas="auto" --gas-prices="0.0025uneutaro" --gas-adjustment="1.5"

neutaro's People

Contributors

neutaro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.