<p>On your linux box you can type the following:</p>

<pre><code>curl -d requestType=startForging -d secretPhrase="PASSPHRASE" http://localhost:7876/nxt
</code></pre>

<p>--</p>

<pre><code>Without curl: wget -qO- 'http://localhost:7876/nxt?requestType=startForging&amp;secretPhrase=sssecrrretPhPhPhphrrrassssse'
</code></pre>

<p><a href="https://nxtwiki.org/wiki/The_Nxt_API#Start_.2F_Stop_.2F_Get_Forging" rel="nofollow">https://nxtwiki.org/wiki/The_Nxt_API#Start_.2F_Stop_.2F_Get_Forging</a></p>

<p>You can use startForging, stopForging or getForging in order to start forging with an account, stop forging, or check that an account is forging.</p>

CC BY-SA 4.0
2021-05-14T13:54:21.240Z
```Blacklisting 191.0.159.98 because of: Unexpected character (r) at position 0.```
Oliver Dixon
CC BY-SA 3.0
2016-07-20T16:15:43.820Z
2016-07-20T16:15:43.820Z
Patoshi パトシ
<p>Installed nxt/ardor on my public server and would like to have it auto mine / stake with an account. How can this be done without having to login to the gui?</p>

<nxt><forging><ardor><staking>
Set a public node to auto forge / mine / stake in NXT / Ardor without login via the gui?
Patoshi パトシ
# Set a public node to auto forge / mine / stake in NXT / Ardor without login via the gui?

(Asked by: username_0 on 2016-07-20)

Installed nxt/ardor on my public server and would like to have it auto mine / stake with an account. How can this be done without having to login to the gui?

**Tags:** nxt, forging, ardor, staking


---

## 1 answers

### Answer by username_0 on 2016-07-20. Score: 1 | Accepted answer

On your linux box you can type the following:

```
curl -d requestType=startForging -d secretPhrase="PASSPHRASE" http://localhost:7876/nxt

```

--

```
Without curl: wget -qO- 'http://localhost:7876/nxt?requestType=startForging&secretPhrase=sssecrrretPhPhPhphrrrassssse'

```

<https://nxtwiki.org/wiki/The_Nxt_API#Start_.2F_Stop_.2F_Get_Forging>

You can use startForging, stopForging or getForging in order to start forging with an account, stop forging, or check that an account is forging.

> **Comments:**
> **username_1**: ```Blacklisting 191.0.159.98 because of: Unexpected character (r) at position 0.```  

---

