Pushchain | Install
System Specs
Section titled “System Specs”| Hardware | Requirement |
|---|---|
| CPU | 4 Cores |
| RAM | 8 GB |
| Disk | 250 GB |
Install Push Chain testnet Validator
Section titled “Install Push Chain testnet Validator”1. System Preparation
Section titled “1. System Preparation”sudo apt updatesudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y2. Install Binary
Section titled “2. Install Binary”wget https://github.com/pushchain/push-chain-node/releases/download/v0.0.15/push-chain_0.0.15_linux_amd64.tar.gztar -xzvf push-chain_0.0.15_linux_amd64.tar.gzchmod +x $HOME/bin/pchaindmv $HOME/bin/pchaind $HOME/go/bin/pchaind version3. Initialize Node
Section titled “3. Initialize Node”pchaind init yourmoniker --chain-id=push_42101-14. Download Genesis & addrbook
Section titled “4. Download Genesis & addrbook”curl -Ls https://ss-t.pushchain.nodestake.org/genesis.json > $HOME/.pchain/config/genesis.jsoncurl -Ls https://ss-t.pushchain.nodestake.org/addrbook.json > $HOME/.pchain/config/addrbook.json5. Custom config (port, etc)
Section titled “5. Custom config (port, etc)”PORT=136sed -i -e "s%:26657%:${PORT}57%" $HOME/.pchain/config/client.tomlsed -i -e "s%:26658%:${PORT}58%; s%:26657%:${PORT}57%; s%:6060%:${PORT}60%; s%:26656%:${PORT}56%; s%:26660%:${PORT}61%" $HOME/.pchain/config/config.tomlsed -i -e "s%:1317%:${PORT}17%; s%:9090%:${PORT}90%" $HOME/.pchain/config/app.toml
sed -i \-e 's|^pruning *=.*|pruning = "custom"|' \-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \-e 's|^pruning-interval *=.*|pruning-interval = "10"|' \$HOME/.pchain/config/app.toml
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.pchain/config/config.toml6. Create Service
Section titled “6. Create Service”sudo tee /etc/systemd/system/pchaind.service > /dev/null <<EOF[Unit]Description=pchaind DaemonAfter=network-online.target[Service]User=$USERExecStart=$(which pchaind) startRestart=alwaysRestartSec=3LimitNOFILE=65535[Install]WantedBy=multi-user.targetEOFsudo systemctl daemon-reloadsudo systemctl enable pchaind7. Download snapshot
Section titled “7. Download snapshot”SNAP_NAME=$(curl -s https://ss-t.pushchain.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")curl -o - -L https://ss-t.pushchain.nodestake.org/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.pchain8. Start Node
Section titled “8. Start Node”sudo systemctl restart pchaindjournalctl -u pchaind -fCreate Wallet & Validator
Section titled “Create Wallet & Validator”9. Create wallet
Section titled “9. Create wallet”pchaind keys add wallet --keyring-backend test10. Get Consensus Pubkey
Section titled “10. Get Consensus Pubkey”CONSENSUS_PUBKEY=$(pchaind comet show-validator)11. Create validator.json file (fill your info)
Section titled “11. Create validator.json file (fill your info)”cat > $HOME/.pchain/validator.json <<EOF{ "pubkey": $CONSENSUS_PUBKEY, "amount": "1000000000000000000upc", "moniker": "your_moniker", "identity": "your_keybase", "website": "your_web", "details": "your_detail", "security": "your_email", "commission-rate": "0.1", "commission-max-rate": "0.2", "commission-max-change-rate": "0.05", "min-self-delegation": "1"}EOF12. Create Validator
Section titled “12. Create Validator”pchaind tx staking create-validator $HOME/.pchain/validator.json --from wallet --chain-id push_42101-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000upc