EOS Programs & Tools 介绍

本文介绍EOS的几款应用程序

官方文档:https://github.com/EOSIO/eos/wiki/Programs-&-Tools

eos-logo

完成EOS源代码编译运行之后,在~/eos/build/programs目录下会出现以下几个应用程序:

Programs

eosiod

The core EOS daemon that can be configured with plugins to run a node. Example uses are block production, dedicated API endpoints and local development.

eosiod可以启动EOS的核心守护进程,通过修改~/eos/build/programs/eosiod/data-dir/config.ini来为其配置需要的插件。比如可以作为区块的生产,专用API端点和本地开发来使用。

插件路径:~/eos/build/plugins

eosioc

eosioc is a command line tool that interfaces with the REST api exposed by eosiod. In order to use eosioc you will need to have the end point (IP address and port number) to an eosiodinstance and also configure eosioc to load the ‘eosio::chain_api_plugin’. eosc contains documentation for all of its commands. For a list of all commands known to eosc, simply run it with no arguments:

eoscio是一个与eosiod暴露出来的REST API进行交互的命令行工具。 使用eosioc的前提是你必须有一个eosiod实例的端点(IP地址和端口号),并且配置eosioc加载eosio :: chain_api_plugin插件。 eosioc包含了所有命令相关的文档。 不带参数地运行eosioc即可了解到所有命令的使用帮助信息。

eosioc的命令参数,是逐层逐层向下展开来进行使用的

关于eosioc的各个命令的使用,请移步官方wiki进行查看:https://github.com/EOSIO/eos/wiki/Command%20Reference

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
➜  eosc git:(master) ✗ ./eosioc
ERROR: RequiredError: Subcommand required
Command Line Interface to Eos Client
Usage: ./eosioc [OPTIONS] SUBCOMMAND

Options:
-h,--help Print this help message and exit #打印帮助信息
-H,--host TEXT=localhost the host where eosd is running #eosd运行的host地址
-p,--port UINT=8888 the port where eosd is running #eosd运行的端口号
--wallet-host TEXT=localhost
the host where eos-walletd is running #eos-walletd运行的host地址
--wallet-port UINT=8888 the port where eos-walletd is running #eos-walletd运行的端口号
-v,--verbose output verbose messages on error #输出详细的错误信息

Subcommands:
version Retrieve version information #检索版本信息
create Create various items, on and off the blockchain #在链上或者链下创建各种参数项
get Retrieve various items and information from the blockchain #从区块链上获取各种参数项和信息
set Set or update blockchain state #设置或更新区块链状态信息
transfer Transfer EOS from account to account #从一个账号向另一个账号转EOS
net Interact with local p2p network connections #与本地p2p网络连接进行交互
wallet Interact with local wallet #与本地钱包进行交互
benchmark Configure and execute benchmarks # 配置区块链的一些基准参数
push Push arbitrary transactions to the blockchain #往区块链上推送任意的交易信息

eosio-walletd

An EOS wallet daemon that loads wallet related plugins, such as the HTTP interface and RPC API

用来加载EOS钱包相关插件的守护进程,例如HTTP接口和RPC API。

launcher

The launcher application simplifies the distribution of multiple eosd nodes across a LAN or a wider network. It can be configured via CLI to compose per-node configuration files, distribute these files securely amongst the peer hosts and then start up the multiple instances of eosd.

这个启动器可以很方便地在局域网或广域网中已去中心化的形式启动多个eosd节点。 可以通过CLI(命令行)来对它进行配置,来修改每个节点的配置文件,在对等主机之间安全地分发这些文件,然后启动eosd的多个实例。

snapshot

A submodule referencing EOSIO/genesis repository that contains a nodejs application for generating a snapshot from crowdsale contract, a web GUI for configuring a genesis block and other genesis related tools.

EOSIO/genesis模块,是用于初始化EOS平台生成块的工具,githu地址:https://github.com/EOSIO/genesis

snapshot引用了EOSIO/genesis仓库相关的子模块,这个仓库包含了用于crowdsale合约生成快照的nodejs应用程序, 一个用于配置创世区块的Web图形界面以及其他与创世相关的工具。

注意点:

  • snapshot不在~/eos/build/programs/snapshot,而是在~/eos/programs/snapshot目录下

疑问:

  • EOS Crowdsale 是啥?有待后期研究

Tools

还没完全搞明白,等搞明白了,回过头来再继续补充 (^_^)

TODO

王维 / Michael  Wang wechat
欢迎交流学习
请我喝杯咖啡吧~