eos api server upgrade to eosio 1.0.1
install node version > 8.x
install eos node server
see https://github.com/espritblock/eos.git
eosjs https://github.com/EOSIO/eosjs.git
egg 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
创建私钥
curl -i -X POST http://localhost:7001/createKey -d seed=abc
签名校验
curl -i -X POST http://localhost:7001/sign/verify -d sign=aaa -d src=aaa -d pubkey=aaa
创建账户
curl -i -X POST http://localhost:7001/account/create -d username=aaaaaaaaaaaa -d active=EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV -d owner=EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
转账
curl -i -X POST http://localhost:7001/transfer -d pk=5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 -d from=eosio -d to=inita -d quantity='1.0000 SYS' -d mome=aaa
查询账户
curl http://localhost:7001/account/info/eosio
通过公钥查询账户
curl http://localhost:7001/account/key/EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
查询余额
curl http://localhost:7001/balance/eosio.token/eosio
交易查询
curl http://localhost:7001/transactions/tid
wechat hl_294944589