# 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
# Clone project repositorycd $HOMErm-rfnibirugitclonehttps://github.com/NibiruChain/nibiru.gitcdnibirugitcheckoutv1.5.0# Build binarymakeinstall# Set node CLI configurationnibidconfignodetcp://localhost:26657nibidconfigkeyring-backendosnibidconfigchain-idcataclysm-1source $HOME/.bash_profile# Initialize the nodenibidinit"NODE_MONIKER"--chain-idcataclysm-1# Download genesis and addrbook filescurl-Lshttps://snapshots-mainnet.unitynodes.com/nibiru-mainnet/genesis.json> $HOME/.nibid/config/genesis.jsoncurl-Lshttps://snapshots-mainnet.unitynodes.com/nibiru-mainnet/addrbook.json> $HOME/.nibid/config/addrbook.json# Set peersPEERS=2def9fa7dfe945cdcde36e8086683c575e57fdb2@5.161.69.253:26656,9915b1353daa966c8e2cc9be4978710c9fb45eef@138.201.188.126:31256,ab2ae706ea5b5df1b306608b258c2232516bdc02@51.195.104.64:5656,063df1b08744f8150f2b00913a0cec9fcbd47ac8@51.89.173.96:55356,75ef1a4193d19788049a2a04115ed42c46f785f0@35.233.106.156:26656sed-i.bak-e"s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.nibid/config/config.toml# Set minimum gas pricesed-i-e's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.000001unibi"|' $HOME/.nibid/config/app.toml# Set pruningsed-i \-e's|^pruning *=.*|pruning = "custom"|' \-e's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \-e's|^pruning-interval *=.*|pruning-interval = "17"|' \ $HOME/.nibid/config/app.toml# Download latest chain data snapshotcurlhttps://snapshots-mainnet.unitynodes.com/nibiru-mainnet/nibiru-mainnet-latest.tar.lz4|lz4-dc-|tar-xf--C $HOME/.nibid# Create a servicesudotee/etc/systemd/system/nibid.service>/dev/null<<EOF[Unit]Description=nibid DaemonAfter=network-online.target[Service]User=$USERExecStart=$(which nibid) startRestart=alwaysRestartSec=3LimitNOFILE=65535[Install]WantedBy=multi-user.targetEOFsudosystemctldaemon-reloadsudosystemctlenablenibid# Start the service and check the logssudosystemctlstartnibid.servicesudojournalctl-unibid.service-f-ocat
📝 Create Validator
1️⃣ Create wallet
nibidkeysaddwallet
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️⃣ Show priv_validator_key.json
cat $HOME/.nibid/config/priv_validator_key.json
SAVE YOUR PRIVATE KEY AFTER ENTERING THE COMMAND
3️⃣ Create validator
nibidtxstakingcreate-validator \--amount1000000unibi \--commission-max-change-rate"0.05" \--commission-max-rate"0.10" \--commission-rate"0.05" \--min-self-delegation"1" \--pubkey=$(nibid tendermint show-validator) \--moniker'' \ #Validatorname,displayedinexplorers.--website"" \ #Yourwebsiteisavailable,orleavethefieldblank--identity"" \ #UseyourKeyBaseID.Ifyoudon't have one, leave it empty. --details "" \ #Any details about your validator. --security-contact="" \ --chain-id cataclysm-1 \ --from wallet #Wallet name, as specified during creation, or typically 'wallet'.