eos api server
install node version > 8.x
install eos node server
see https://github.com/espritblock/eos.git
use eosjs see https://github.com/EOSIO/eosjs.git
see egg see https://github.com/eggjs/egg.git
$ npm i
$ npm run dev
$ open http://localhost:7001/
$ npm start
$ npm stop
editor app/controller/home.js
pk
eosServer
mainAccount
创建私钥
POST http://localhost:7001/createKey
签名校验
POST http://localhost:7001/sign/verify
创建账户
POST http://localhost:7001/account/create
转账
POST http://localhost:7001/transfer
查询账户
GET http://localhost:7001/account/info/:account
查询余额
GET http://localhost:7001/balance/:contract/:account
交易查询
GET http://localhost:7001/transactions/:name/:page/:size