> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usexfg.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Merge Mine XFG Alongside Another CryptoNote Coin

> Set up merge mining to earn Fuego (XFG) block rewards simultaneously with another compatible CryptoNote proof-of-work blockchain at no extra cost.

Merge mining lets you earn block rewards on two CryptoNote blockchains at the same time without doing any extra computational work. Your mining hardware solves proof-of-work puzzles once, and if a valid solution is found it is submitted to both chains simultaneously. Fuego supports CryptoNote merge mining, so you can point a compatible merge-mining pool — or a standalone miner — at the Fuego daemon and collect XFG rewards alongside another coin.

## How it works

When a mining pool or miner requests a block template from the Fuego daemon (`getblocktemplate`), the daemon can embed a secondary chain's merge-mining tag in the coinbase transaction. The miner works on this combined template. A solution that meets Fuego's difficulty target is submitted to the Fuego daemon via `submitblock`. The same solution may also meet the difficulty target of the other chain, in which case it is submitted there too.

Because both chains share the same proof-of-work, merge mining adds no extra electricity cost or hardware requirement.

## Prerequisites

* A fully synced `fuegod` daemon (the daemon must be at chain tip before blocks you submit will be accepted)
* A compatible CryptoNote coin that supports merge mining
* Mining software or a pool that understands the CryptoNote merge-mining protocol

<Note>
  The `fuegod` daemon must be fully synced before you start mining. Blocks submitted to an out-of-sync node will be rejected. Check sync status by running `./fuegod` and watching the block height, or query the RPC endpoint: `curl http://127.0.0.1:18180/getinfo`.
</Note>

## Miner flags

The Fuego standalone miner (`miner`) accepts the following flags:

| Flag                | Description                                                         |
| ------------------- | ------------------------------------------------------------------- |
| `--address`         | The `fire…` address that receives block rewards                     |
| `--daemon-host`     | Hostname or IP of the `fuegod` RPC interface (default: `127.0.0.1`) |
| `--daemon-rpc-port` | RPC port of the `fuegod` daemon (default: `18180`)                  |
| `--threads`         | Number of CPU threads to use for mining                             |

## Setup

<Steps>
  <Step title="Start and sync the Fuego daemon">
    Launch `fuegod` and wait for it to reach the current chain height. The sync process downloads the full blockchain, which may take time depending on your connection.

    ```bash theme={null}
    ./fuegod --rpc-bind-ip 0.0.0.0 --rpc-bind-port 18180
    ```

    Confirm sync is complete before proceeding:

    ```bash theme={null}
    curl http://127.0.0.1:18180/getinfo
    ```

    Look for `"synced": true` or compare `height` and `top_block_height` in the response.
  </Step>

  <Step title="Configure your pool or standalone miner">
    Point your merge-mining pool software at the Fuego daemon's RPC endpoint. The two JSON-RPC methods your pool needs are:

    **Get a block template:**

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "method": "getblocktemplate",
      "params": {
        "wallet_address": "fireXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "reserve_size": 8
      },
      "id": 1
    }
    ```

    **Submit a solved block:**

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "method": "submitblock",
      "params": ["<block_blob_hex>"],
      "id": 1
    }
    ```

    Configure your pool to call these endpoints at `http://<daemon-host>:18180/json_rpc`.
  </Step>

  <Step title="Start the Fuego miner (standalone mode)">
    If you are solo mining or testing without a pool, use the standalone miner binary:

    ```bash theme={null}
    ./miner \
      --address fireXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
      --daemon-host 127.0.0.1 \
      --daemon-rpc-port 18180 \
      --threads 4
    ```

    Adjust `--threads` to match the number of logical CPU cores you want to dedicate. The miner will log accepted shares and any blocks found.
  </Step>

  <Step title="Verify block submissions">
    Successful block submissions from your pool or miner will appear as coinbase transactions in the Fuego block explorer. You can also check your mining address balance in `simplewallet` after the mined output matures (60 blocks for coinbase outputs).
  </Step>
</Steps>

## Network parameters

| Parameter         | Value                     |
| ----------------- | ------------------------- |
| Block target      | 480 seconds (\~8 minutes) |
| P2P port          | 10808                     |
| RPC port          | 18180                     |
| Coinbase maturity | 60 blocks                 |

<Tip>
  Check the Fuego Discord community ([https://discord.gg/5UJcJJg](https://discord.gg/5UJcJJg)) for an up-to-date list of pools that support XFG merge mining. Community members regularly share working pool configurations and compatible coin pairings.
</Tip>
