<p>I'm trying to figure this out too.</p>

<p>Instead of running the server interface at <a href="http://127.0.0.1:7876" rel="nofollow">http://127.0.0.1:7876</a> try <a href="http://127.0.0.1:7876/test" rel="nofollow">http://127.0.0.1:7876/test</a> . Looks like a bunch of API calls. I'm playing with it right now.</p>

CC BY-SA 3.0
2015-02-11T22:34:21.477Z
2015-02-11T22:34:21.477Z
madalieninvader
<p>use curl</p>

<p>for instance:</p>

<blockquote>
  <p>curl -s --data "requestType=getAlias&amp;aliasName=google" <a href="http://127.0.0.1:7876/nxt" rel="nofollow">http://127.0.0.1:7876/nxt</a></p>
</blockquote>

<p>So in PHP</p>

<blockquote>
  <p>$cmd = 'curl -s --data "requestType=getAlias&amp;aliasName=google" <a href="http://127.0.0.1:7876/nxt" rel="nofollow">http://127.0.0.1:7876/nxt</a>';
  $jsonString = exec($cmd);</p>
</blockquote>

CC BY-SA 3.0
2015-05-13T08:48:28.203Z
2015-05-13T08:48:28.203Z
Lionel Palazzi
<p>I have nxt (nxtcoin) server installed, but since its built completely different from Bitcoin and uses Java. How do you use the command line to control a NXT client to send, generate addresses, etc?</p>

<p>I want to use this for interfacing with a PHP cms system (drupal) and curious how to interface with the NXT system.</p>

<php><nxt>
Manage / run commands in a NXT (nxtcoin) client/server via the command line in Linux?
Patoshi パトシ
# Manage / run commands in a NXT (nxtcoin) client/server via the command line in Linux?

(Asked by: username_0 on 2014-07-17)

I have nxt (nxtcoin) server installed, but since its built completely different from Bitcoin and uses Java. How do you use the command line to control a NXT client to send, generate addresses, etc?

I want to use this for interfacing with a PHP cms system (drupal) and curious how to interface with the NXT system.

**Tags:** php, nxt


---

## 2 answers

### Answer by username_1 on 2015-02-11. Score: 1 | Accepted answer

I'm trying to figure this out too.

Instead of running the server interface at <http://127.0.0.1:7876> try <http://127.0.0.1:7876/test> . Looks like a bunch of API calls. I'm playing with it right now.


---

### Answer by username_2 on 2015-05-13. Score: 1

use curl

for instance:

> curl -s --data "requestType=getAlias&aliasName=google" <http://127.0.0.1:7876/nxt>

So in PHP

> $cmd = 'curl -s --data "requestType=getAlias&aliasName=google" <http://127.0.0.1:7876/nxt>';
> $jsonString = exec($cmd);


---

