It's required.
you need get your WIF private key from https://bitshares.openledger.info
these keys required for create transaction and read memo
go to cfg.js file and edit.
for example:
module.exports = {
wssapi: 'wss://bitshares.openledger.info/ws', // you can choose blockchain server for send your request
localhost: '127.0.0.1', //your web server
private_keys: {
"user-1": '5RTTdfdfdf456456fghfg546kliopiogfghfghxxxxxsdasdasd',
"name_of_user_2": 'SET YOUR WIF PRIVATE KEY HERE...',
"name_of_user_3": 'SET YOUR WIF PRIVATE KEY HERE...'
}
};
This script for fast install (install nodejs, dependencies and run server on port :8090).
$ git clone https://github.com/openledger/openledger_nodejs_api
$ cd openledger_nodejs_api
$ chmod +x startshell.sh && ./startshell.sh
If you dont have nodejs you need install requires Node.js v6+ to run. We recommended install Nodejs 7. node.js package-manager
node server_api.js PORT
for example:
node server_api.js 8090
default value of port is 8090
this api have two urls paths:
Please format body as JSON.
http://127.0.0.1/api/transfer for transaction actions.
http://127.0.0.1/api/history get history of blockchain.
DON'T FORGET TO ADD KEYS TO CFG.JS AS METIONED ABOVE (cfg.js)