Home

Where do I put my wallet address in the XMRig config.json?

Put your Monero wallet address in the "user" field inside the "pools" section of XMRig’s config.json file. Replace the existing value with your public XMR receiving address, keep the quotation marks, then save the file and restart XMRig.

Find the right field

XMRig is mining software that runs directly on your computer, rather than inside your browser. Its config.json file stores settings such as your mining pool and wallet address. A mining pool combines work from many miners and pays each miner a share.

Open the file in a plain-text editor and look for "pools". Inside that section, find the pool entry you want to use and change its "user" value.

Here is a simplified example showing where the address belongs:

{
  "pools": [
    {
      "url": "POOL_HOST:PORT",
      "user": "YOUR_PUBLIC_XMR_WALLET_ADDRESS",
      "pass": "x",
      "coin": "monero"
    }
  ]
}

This is an illustration, not a ready-to-run configuration. Keep your actual pool’s server address and port in "url", and replace "YOUR_PUBLIC_XMR_WALLET_ADDRESS" with your receiving address.

You usually only need to edit the existing "user" line. Do not replace your entire configuration with this short example.

Paste your public address, not wallet secrets

Copy the receiving address from your Monero wallet’s Receive screen. A standard Monero address is 95 characters long and starts with 4. A subaddress—an additional receiving address generated by your wallet—also has 95 characters but starts with 8.

Check your pool’s instructions before using a subaddress. Not every pool or payout setup accepts every address type.

Never put these in your XMRig configuration:

  • Your seed phrase, the words that can restore your wallet.
  • Your private spend key, which allows someone to spend your coins.
  • Your wallet password.

XMRig does not need those secrets to mine to your address. After pasting, check the beginning and end of the address against your wallet. Remove any accidental spaces or line breaks.

Check the pool’s username rules

For many Monero pools, "user" contains only your wallet address. However, some pools require an account username or a special format that includes a worker name—a label for a particular mining computer.

Follow your pool’s exact instructions. Do not add a worker name, payment identifier, or other suffix unless the pool specifically asks for it.

The "pass" field is separate. Many pools accept "x", while others use it for worker labels or pool-specific options. It is not where you put your wallet password.

If your "pools" section has several entries, check each one. A backup pool may have its own "user" value, so changing only the first entry could leave another wallet address in use.

Save and make sure XMRig uses it

Keep the file’s punctuation intact: quotation marks, commas, square brackets, and braces all matter in JSON, the settings format XMRig uses.

Save the file and restart XMRig to apply the change reliably. If you launch it with a command such as:

xmrig --config=/path/to/config.json

make sure you edited that exact file. Also check whether your launch command supplies a different wallet through -u or --user.

The bottom line

Your wallet address normally goes in pools → "user". Use your public receiving address, follow your pool’s formatting rules, and restart XMRig after saving.

All 1,000 questions

MyAiMiner.com

MyAiMiner.com — Monero mining blog. 1,000 questions. Clear answers.

Monero (XMR) Mining BLOG

Hashes0
Blocks accepted0
Blocks rejected0
Runtime00:00:00