chain-eval
v1.1.1
Published
MOAC RESTful API Based on MOAC SDK
Downloads
23
Readme
Requirement
node 8.9 + (npm support) mongo 3.6 +
Install
- mkdir for your application. For example: mkdir /eval
- install package.
cd /eval
npm install chain-eval - edit userconfig.json and start eval script. cd /eval/node_modules/chain-eval vim userconfig.json mhost;mdb;muser;mpwd is mongo config scount is thread count for transaction csecond (Millisecond) is timeout to create one account tsecond (Millisecond) is timeout to create one transaction pkey is private key for moac initial account. chmod 777 eval ./eval
- edit config.js and start service.
vim config.js
from is default address to send transaction
to is target default address for transaction
frompkey is default private key of from
contractName is test sol name in current folder serverport is service port (if blank means default 8080) eval is moac eval service url config mongourl: is mongo url config docker is docker url config https: 0 // 1:on 0:off node server.js
Update
- backup userconfig.json and config.js
- npm update chain-eval
- check version in package-lock.json and restore config file