Nockchain
Nockchain is the fair PoW chain with modern programmability & high-throughput, powered by Zero-Knowledge Proof of Work.
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 gitInstall Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env2. Clone the code & prepare the environment
git clone https://github.com/zorp-corp/nockchain.git
cd nockchain
cp .env_example .env3. Build components
make install-hoonc
make install-nockchain-wallet
make install-nockchainMake sure $HOME/.cargo/bin is in your PATH:
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc4. Create a wallet for mining
Generate a new key:
nockchain-wallet keygenπ Save the following:
Public Key (to be added to
.env)Private Key + Seed Phrase (for backup)
Edit .env and set:
MINING_PUBKEY=<your-generated-public-key>5. Backup/restore keys (recommended)
Export keys:
nockchain-wallet export-keysRestore keys when needed:
nockchain-wallet import-keys --input keys.export6. Run mainnet node
Node only (no mining, sync only):
bash ./scripts/run_nockchain_node.shNode + Miner (mine NOCK tokens):
bash ./scripts/run_nockchain_miner.shπ When running miner for the first time, clear old data if you previously joined testnet:
rm -rf ~/.nockchain7. Verify itβs working
Miner logs showing:
[%mining-on β¦]β means mining is active.
Block logs showing:
block β¦ added to validated blocks at <height>β 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
