Become a miner
How to become a miner and earn rewards.
Introduction
Within the network, miners are tasked with generating all proofs, necessitating both significant computational resources and a stake commitment as collateral. This crucial role is reflected in the reward structure, with miners receiving the largest share of network rewards.
The network's architecture accommodates a wide range of proving programs, each with its own hardware specifications. This design allows for broader participation, enabling even devices such as laptops and mobile phones to contribute to mining and receive corresponding rewards. However, devices with higher processing power will be capable of completing a greater number of proving tasks, resulting in increased reward opportunities.
Begin running a miner program on your device to participate.
Setup
- Install latest docker
- Download or copy miner docker-compose template
networks:
default:
name: pozk
services:
pozk-miner:
image: zyphernetwork/pozk-miner:v0.1.11
container_name: pozk-miner
ports:
- 9098:9098 # HTTP
- 7364:7364 # P2P
- 7364:7364/udp
volumes:
- ./:/usr/pozk
- /var/run/docker.sock:/var/run/docker.sock
command:
- --network=testnet
- --miner=0x0000000000000000000000000000000000000000 # set your miner address here
# - --url=https://example.com # set the public domain for this miner, you will receive more tasks
IMPORTANT change the miner account, and if you set the domain for this miner, you will receive tasks from proxy-service, and support multiple zk tasks (e.g. Z4).
Others command
parameters list here, maybe you need:
# if you want to use a proxy to speed up docker download
- --docker-proxy=docker.unsee.tech
# if you want to change the data storage directory
- --base-path=/usr/pozk
# if you want to change the RPC endpoints
- --endpoints=https://rpc.zypher.network
# if you want to use another 0 gas server to pay gas
- --zero-gas=https://gas.zypher.network
# if you want to use more advanced configuration
- --config=/usr/pozk/config.toml
- Run
docker compose up -d
TIPS: if you use nginx, you can use the config to proxy:
server {
listen 80;
server_name xxx.com;
location / {
proxy_pass http://127.0.0.1:9098;
}
location /inner/ {
return 400;
}
}
Stake a prover (game)
Open browser, and visit: http://localhost:9098
-
Connect wallet use your miner account
-
You need to setup a local controller for mining
-
You can choose generate new or import one
-
You need enable the controller and submit it to the chain, make sure there is enough balance in this account if this account does not has 0 gas SBT.
-
Now, you can view the dashboard
Install the prover
-
You will see the provers list in the dashboard, and your staking status.
-
You must download the prover in local device, AND THEN you can stake the prover.
-
It will automatically start accepting orders for mining after you download the prover.
Collect rewards
-
You can see all rewards which can collect by epoch.
-
After you collected the rewards, it will in
collected rewards
, and after an epoch, you can make a claim. -
After claim, it will send to you wallet directly.