> For the complete documentation index, see [llms.txt](https://moltad.gitbook.io/nodehashcoin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moltad.gitbook.io/nodehashcoin/mine-in-the-browser.md).

# Mine in the browser

Mine NHC in Chrome at nodehashcoin.com/mine. No extension required.

Anyone with a modern browser can mine NodeHashCoin. Open the miner page, create a wallet, then press **Start Mining**. Hashing runs on your device (Web Workers + WASM BLAKE3). The website never mines in the background without that click.

<a href="https://nodehashcoin.com/mine" class="button secondary">Open the miner</a>

{% hint style="warning" %}
Write down your seed phrase on paper before you start. If you lose it, those coins cannot be recovered.
{% endhint %}

{% stepper %}
{% step %}

## Open the miner

In Chrome (or another current browser), go to <https://nodehashcoin.com/mine>.
{% endstep %}

{% step %}

## Create or paste a wallet

Choose **Create wallet** or paste an existing key. Back up the seed phrase offline. The miner pays the address you show on that page.
{% endstep %}

{% step %}

## Pick a CPU preset

| Preset  | About     | Use when                                           |
| ------- | --------- | -------------------------------------------------- |
| Desktop | \~75% CPU | A plugged-in computer you are not gaming on        |
| Laptop  | \~40% CPU | Everyday laptop use                                |
| Phone   | \~15% CPU | Keep the device cool and the tab in the foreground |

You can stop at any time. Hash rate is shown on the page while you mine.
{% endstep %}

{% step %}

## Start Mining

Press **Start Mining**. Leave the tab open. Press **Stop** when you are done. Rewards follow the same coinbase rules as every other miner on the network.
{% endstep %}
{% endstepper %}

## What the miner talks to

The page connects to a mining gateway (default `wss://nodehashcoin.com/mine`). You can point a self-hosted miner UI at another node URL. Consensus is **BLAKE3**, defined by the TypeScript node package — not SHA-256.

```mermaid
sequenceDiagram
  participant You
  participant Tab as Miner tab
  participant Node as Validation node
  You->>Tab: Start Mining
  Tab->>Node: Request work
  Node-->>Tab: Block template
  Tab->>Tab: BLAKE3 in Web Workers
  Tab->>Node: Submit share
```

## Deploy your own miner UI

The public miner repo is a standalone TypeScript app (clone it by itself — there are no git submodules).

{% tabs %}
{% tab title="Cloudflare" %}

```bash
git clone https://github.com/chrisgu/nodehashcoin-webminer.git
cd nodehashcoin-webminer
npm install
npx wrangler deploy
```

Point the miner at your node URL in the package env example before you deploy.
{% endtab %}

{% tab title="Google Cloud" %}

```bash
git clone https://github.com/chrisgu/nodehashcoin-webminer.git
cd nodehashcoin-webminer
npm install
# Cloud Run: build the static/UI bundle, then
gcloud run deploy nodehashcoin-webminer --source .
```

{% endtab %}

{% tab title="AWS" %}

```bash
git clone https://github.com/chrisgu/nodehashcoin-webminer.git
cd nodehashcoin-webminer
npm install
# Elastic Beanstalk or a static bucket + CloudFront both work.
# Use the README in the repo for the current template.
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
There is no Chrome Web Store miner. Google does not allow mining in extensions. Use the website.
{% endhint %}
