Page cover

Nockchain

Nockchain is the fair PoW chain with modern programmability & high-throughput, powered by Zero-Knowledge Proof of Work.

https://www.nockchain.org/

Nockchain Mainnet (Dumbnet) Installation & Run Guide

1. Install dependencies

sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential clang llvm-dev libclang-dev make pkg-config git

Install Rust:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

2. Clone the code & prepare the environment

git clone https://github.com/zorp-corp/nockchain.git
cd nockchain
cp .env_example .env

3. Build components

make install-hoonc
make install-nockchain-wallet
make install-nockchain

Make sure $HOME/.cargo/bin is in your PATH:


4. Create a wallet for mining

Generate a new key:

πŸ“Œ Save the following:

  • Public Key (to be added to .env)

  • Private Key + Seed Phrase (for backup)

Edit .env and set:


Export keys:

Restore keys when needed:


6. Run mainnet node

Node only (no mining, sync only):

Node + Miner (mine NOCK tokens):

πŸ‘‰ When running miner for the first time, clear old data if you previously joined testnet:


7. Verify it’s working

  • Miner logs showing:

    β†’ means mining is active.

  • Block logs showing:

    β†’ means your node is synced with mainnet.


8. Notes for mainnet

  • Recommended server: 8 cores CPU, 16GB+ RAM, NVMe SSD.

  • Open P2P port 40333 (default) to allow other nodes to connect.

  • If you see Address already in use β†’ change port in .env.

  • Use screen or tmux to keep the process running after logout.

Last updated