GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - espritblock/eos-server-api: eos-server-api create by espritblock

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.settings
.settings
 
 
app
app
 
 
config
config
 
 
test/app/controller
test/app/controller
 
 
.autod.conf.js
.autod.conf.js
 
 
.eslintignore
.eslintignore
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.project
.project
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
appveyor.yml
appveyor.yml
 
 
package.json
package.json
 
 

Repository files navigation

Eos-api

eos api server upgrade to eosio 1.0.1

QuickStart

install node version > 8.x

see https://nodejs.org/en/

install eos node server

see https://github.com/espritblock/eos.git

USE LIB

eosjs https://github.com/EOSIO/eosjs.git

egg https://github.com/eggjs/egg.git

Development

$ npm i
$ npm run dev
$ open http://localhost:7001/

Deploy

$ npm start
$ npm stop

config

editor app/controller/home.js

pk

eosServer

mainAccount

eos api

创建私钥

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



join eos open source

wechat hl_294944589

About

eos-server-api create by espritblock

eblock.io

Resources

Readme
Apache-2.0 license
Activity

Stars

11 stars

Watchers

0 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.