# Install dependencies for building from sourcesudoaptupdatesudoaptinstall-ylz4jqmakegitgccbuild-essentialcurlchronyunzipgzipsnapdtmuxbc# Install Gosudorm-rf/usr/local/gocurl-Lhttps://go.dev/dl/go1.21.6.linux-amd64.tar.gz|sudotar-xzf--C/usr/localecho'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin'>> $HOME/.bash_profilesource.bash_profile
2️⃣ Install node
Replace "NODE_MONIKER" with your name moniker
# Install selfchain through binarycd $HOMEwgethttps://github.com/hotcrosscom/Self-Chain-Releases/releases/download/mainnet-v1.0.1/selfchaind-linux-amd64chmod+xselfchaind-linux-amd64mvselfchaind-linux-amd64 $HOME/go/bin/selfchaind# Initialize the nodeselfchaindinit"NODE_MONIKER"--chain-idself-1# Download genesis and addrbook filescurl-Lshttps://snapshots-mainnet.unitynodes.com/selfchain-mainnet/genesis.json> $HOME/.selfchain/config/genesis.jsoncurl -Ls https://snapshots-mainnet.unitynodes.com/selfchain-mainnet/addrbook.json > $HOME/.selfchain/config/addrbook.json
# Set minimum gas pricesed-i's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.005uself"|g' $HOME/.selfchain/config/app.toml# Set pruningsed-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/.selfchain/config/app.toml# Download latest chain data snapshotcurl https://snapshots-mainnet.unitynodes.com/selfchain-mainnet/selfchain-mainnet-latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.selfchain
# Create a servicesudotee/etc/systemd/system/selfchaind.service>/dev/null<<EOF[Unit]Description=selfchain nodeAfter=network-online.target[Service]User=$USERExecStart=$(which selfchaind) startRestart=alwaysRestartSec=3LimitNOFILE=65535[Install]WantedBy=multi-user.targetEOF# Start the service and check the logssudosystemctldaemon-reloadsudosystemctlenableselfchaindsudosystemctlstartselfchaind.servicesudojournalctl-uselfchaind.service-f-ocat
📝 Create Validator
1️⃣ Create wallet
selfchaindkeysaddwallet
Save all information after entering the command, without this you will not be able to restore data to the wallet. SAVE SEED PHRASE (12 words).
2️⃣ View your wallet balance
selfchaindkeysqbankbalances"address"
if the balance is displayed - continue further
3️⃣ View the sync status of your node
selfchaindstatus|jq|grep"catching_up"
If "true" - not synchronized // "false" - synchronized