XMRig
Requirements¶
Wallet¶
Before starting, you'll need to have a Monero Wallet configured.
You have to use the Primary wallet address for mining - Subaddresses and integrated addresses are not supported.
Node¶
Optional: Solo mining using XMRig can be configured to use ZMQ to avoid polling the node. To use ZMQ instead of polling add the following to your monerod config file or startup flags:
--zmq-pub tcp://127.0.0.1:18083
Example
./monerod --zmq-pub tcp://127.0.0.1:18083 --out-peers 32 --in-peers 64 --add-priority-node=p2pmd.xmrvsbeast.com:18080 --add-priority-node=nodes.hashvault.pro:18080 --disable-dns-checkpoints --enable-dns-blocklist
XMRig¶
You'll need to download or compile XMRig.
You can download XMRig from: XMRig.com
Configuring XMRig¶
XMRig can be run using a config file or startup flags:
Note: remove the parameter for daemon-zmq-port if your node does not have it enabled.
There is a wizard on XMRig.com.
Modify the pool section of your config file:
"pools": [
{
"enabled": true,
"url": "127.0.0.1:18081",
"user": "XMR_WALLET_ADDRESS",
"daemon": true,
"daemon-zmq-port": 18083,
}
],
Add the following flags to your xmrig startup:
--daemon -o 127.0.0.1:18081 -u XMR_WALLET_ADDRESS --daemon-zmq-port 18083
See the official docs.
Running XMRig¶
./xmrig -c config.json
sudo. xmrig.exe -c config.json
./xmrig --daemon -o 127.0.0.1:18081 -u XMR_WALLET_ADDRESS --daemon-zmq-port 18083
sudo. xmrig.exe --daemon -o 127.0.0.1:18081 -u XMR_WALLET_ADDRESS --daemon-zmq-port 18083
Efficiency¶
You may want to check your efficiency before you start mining. This is based on your power costs vs the hashrates that your hardware is able to produce.
You can check your estimated hashrates at xmrig.com/benchmark.
There are many sites, such as CryptoCompare that allow you to enter your hashrate, power draw and power costs to calculate your efficiency.
Getting Help¶
There is an active Monero mining community on Reddit at /r/MoneroSupport. You can also join #monero-pools on Rizon or #xmrmine on Matrix.
Also see our troubleshooting page.
Adapted from monero-site