nxt-connect is a REST API client that wrapped NXT Client's Web API for simple access, it has a built-in blockchain peers indexer option to ensure your requests will never be slow if the client has massive traffic. We officially support NXT Wallet from the official NXT Platform, WCG Wallet from three blockchain cryptocurrency exchange(EUNEX, MBAEX, WCEEX), and any existing blockchain wallets uses NXT Client.
- macOS 10.9+ / Linux / Windows
- Node.js
>=8(6.x and 7.x may work but is no longer tested, please upgrade)
- Create a folder to hold your installation:
mkdir nxt-connect - FTP/Copy the contents of the zip to your newly created folder
- Enter folder:
cd nxt-connect - Install dependencies:
npm install - Start application:
npm start --production - Visit http://127.0.0.1:8080 in your browser
Keeping nxt-connect running after closing the terminal can be done in a few ways but we recommend using the PM2 package. To set this up:
- Install PM2:
npm install pm2 -g - Add nxt-connect to PM2:
NODE_ENV=production pm2 start src/app.js --name "nxt-connect" - Check PM2 has our app:
pm2 list - Save the PM2 config:
pm2 save - To start/stop:
pm2 start nxt-connect/pm2 stop nxt-connect
Note: Node.js version 7.x or greater is needed.
Example Response
curl https://nxt.imvictor.me/api/account/WCG-83F6-KTWP-EWUK-96HNS{
"accountRS": "WCG-83F6-KTWP-EWUK-96HNS",
"accountNo": "8958192434388600228",
"publicKey": "661759bc9541e476ffadda54fd1337edced5ab61f57884d8ab9b01f2275fee65",
"balance": "347.981 WCG",
"assets": [
{
"balance": 5000000,
"slug": "BTC",
"description": "BTC"
},
{
"balance": 5000000,
"slug": "ETH",
"description": "ETH"
},
{
"balance": 10000000000,
"slug": "USD",
"description": "USD"
},
{
"balance": 10000000000,
"slug": "RMB",
"description": "RMB"
},
{
"balance": 1776,
"slug": "MAT",
"description": "MAT"
}
]
}Created and maintained by VEDDEV (@veddev0x).
nxt-connect is available under the MIT license. See the LICENSE file for more info.