> For the complete documentation index, see [llms.txt](https://services.noderuner.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.noderuner.xyz/hemi-network/installation.md).

# 🔌  Installation

Explorer : <https://mempool.space/testnet>

```
apt install git make
```

```
wget https://github.com/hemilabs/heminetwork/releases/download/v0.5.0/heminetwork_v0.5.0_linux_amd64.tar.gz
```

```
tar -xzvf heminetwork_v0.5.0_linux_amd64.tar.gz
```

```
mv heminetwork_v0.5.0_linux_amd64 heminetwork
```

```
chmod +x /root/heminetwork/bfgd
chmod +x /root/heminetwork/bssd
chmod +x /root/heminetwork/btctool
chmod +x /root/heminetwork/extool
chmod +x /root/heminetwork/hemictl
chmod +x /root/heminetwork/keygen
chmod +x /root/heminetwork/popmd
chmod +x /root/heminetwork/tbcd
```

```
cd heminetwork
./keygen -secp256k1 -json -net="testnet" > ~/popm-address.json
```

don't forget to save your private key and btc address

```
nano /root/popm-address.json
```

Let's create a service

don't forget to write a private key inside the service file

```
sudo tee /etc/systemd/system/popmd.service <<EOF
[Unit]
Description=Popmd Service
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/root/heminetwork
ExecStart=/root/heminetwork/popmd
Environment="POPM_BTC_PRIVKEY=PRİVATE KEY"
Environment="POPM_STATIC_FEE=50"
Environment="POPM_BFG_URL=wss://testnet.rpc.hemi.network/v1/ws/public"
Restart=always

[Install]
WantedBy=multi-user.target
EOF

```

{% embed url="<https://discord.gg/hemixyz>" %}

Get faucet from the Discord channel&#x20;

Let's Get Started

```
sudo systemctl daemon-reload
sudo systemctl enable popmd
sudo systemctl start popmd
```

```
systemctl daemon-reload && systemctl restart popmd && journalctl -u popmd -fo cat
```

to check the logs

```
sudo journalctl -u popmd -fo cat
```


---

# 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://services.noderuner.xyz/hemi-network/installation.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.
