Manage / run commands in a NXT (nxtcoin) client/server via the command line in Linux?

0

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.

Patoshi パトシ

Posted 2014-07-17T14:17:24.727

Reputation: 8 911

Answers

1

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.

madalieninvader

Posted 2014-07-17T14:17:24.727

Reputation: 26

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);

Lionel Palazzi

Posted 2014-07-17T14:17:24.727

Reputation: 11