How do I enter my wallet address in XMRig for solo mining?
Enter your Monero wallet’s primary receiving address in XMRig’s "user" field, and enable "daemon": true for solo mining. The "url" must point to your Monero node—not a mining pool—so adding your address alone is not enough.
Get the right address from your wallet
Open your Monero wallet and find its Receive screen. Copy your primary receiving address. On Monero’s main network, this is a 95-character address that starts with 4.
For this setup, use that primary address rather than a subaddress, which starts with 8. Copy and paste it instead of typing it by hand, then check that you have not included any spaces or line breaks.
You only need the public receiving address. Never put your recovery seed, private keys, or wallet password into XMRig. Your recovery seed is the set of words that can restore—and control—your wallet.
Your wallet application does not need to stay open while you mine. It is your node that must remain running.
Put your address in XMRig’s configuration
Open XMRig’s config.json file in a plain-text editor. Find the "pools" list and replace its existing entries with a solo-mining entry like this:
"pools": [
{
"coin": "monero",
"url": "127.0.0.1:18081",
"user": "YOUR_PRIMARY_MONERO_ADDRESS",
"pass": "x",
"daemon": true,
"enabled": true
}
]
This is a section of the configuration file, not a complete file by itself. Replace YOUR_PRIMARY_MONERO_ADDRESS with your actual address, keeping the quotation marks.
Here is what matters:
"user"tells your node which address should receive the reward if you find a block."daemon": truetells XMRig to mine through a node rather than connect to a pool."url"gives the node’s connection address.127.0.0.1means your own computer;18081is the usual Monero main-network RPC port. RPC is the interface that lets XMRig request work from the node."pass": "x"is a placeholder, not your wallet password.
Save the file and restart XMRig.
Make sure your node is ready
Run the Monero node software, monerod, and let it finish synchronizing—downloading and checking the blockchain’s transaction history—before you expect to mine normally.
The example assumes XMRig and your node run on the same computer. Keep the node’s RPC interface limited to your own computer for this setup. Do not expose it publicly just to make mining work.
If you prefer starting XMRig with command-line options, the equivalent basic command is:
xmrig --coin monero --daemon \
-o 127.0.0.1:18081 \
-u YOUR_PRIMARY_MONERO_ADDRESS
Check XMRig’s startup output for a successful node connection and incoming mining work. If it cannot connect, check that monerod is running, synchronized, and using the port you entered.
The bottom line
For direct solo mining, your address goes in "user", your node goes in "url", and "daemon" must be true. You receive a reward only if you find a block, which can take an extremely long time on a single computer. Newly mined rewards stay locked for 60 blocks—roughly two hours.
