Run a node
Three places to mine from.
Pick the one that stays on the longest
In a browser tab
The quickest way. Open My node, connect, press start. It mines while the tab is open
On your PC
Run the small program in a terminal. It keeps going with the browser closed
On a server
The same program on a machine that never sleeps, for a node that misses no epoch
The program
miner.js is in the node folder of the project. It needs Node.js 18 or newer
cd node
npm install
RPC_URL=<elysium rpc> \
MINER=<contract> \
OWNER=<your wallet> \
NODE_KEY=<node key> \
node miner.js
- Run it once without NODE_KEY. It prints a new node key and its address
- On My node, or with setNode, name that address as your node
- Send the address a little HYPE on Elysium for gas
- Run it again with NODE_KEY set. It checks in every epoch from then on
Keep the keys apart
The node key is not your wallet. It can only check in for you. Never give the program your wallet key, and never paste any key into a website or a chat
If a node key leaks, name a new one. The old one stops working at once and nothing you mined can be taken with it