> For the complete documentation index, see [llms.txt](https://docs.ierc20.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ierc20.com/new-features/ierc-pow/how-to-mine.md).

# How to Mine

## Using CLI Code

If you have programming basics, you can run our CLI for mining.

1. Fork our CLI code repository.

```
git clone https://github.com/IErcOrg/ierc-miner-js
```

2. Initialize the package.

```
yarn install
# or npm install
```

3. Import or create a mining account.

```
# View help information
yarn run cli wallet --help

# Create a new account
yarn run cli wallet -create

# Import an existing account
yarn run cli wallet -set <Your PrivateKey>

# View account information
yarn run cli wallet -show <Your Address>
yarn run cli wallet -show --all
```

4. Start mining.

<pre><code><strong>yarn run cli mine &#x3C;Tick> --account &#x3C;Your Miner Account>
</strong></code></pre>

5. View help information.

```
yarn run cli --help
```

## Using the Website

If you have no programming background, you can use our web interface for mining.

Website: <https://miner.ierc20.com>

This website is fully open-source, and you can check it out at <https://github.com/IErcOrg/ierc-miner-js>

## Other Methods

If you are an excellent developer, you can rewrite the mining program in any language, as long as it can quickly compute `mintHash` and submit it to the chain.

We will only rely on the actual `mintHash` on the chain as the sole criterion for indexing.

If you develop an outstanding mining program and are willing to share it as open-source, please contact us.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ierc20.com/new-features/ierc-pow/how-to-mine.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
