钱包和账户手册
一、创建和启动单个节点
使用以下命令来启动私有的单节点EOSIO:
cd build/programs/nodeos
./nodeos -e -p eosio --plugin eosio::wallet_api_plugin --plugin eosio::chain_api_plugin --plugin eosio::account_history_api_plugin
运行时,nodeos会输出以下的日志消息,这意味着EOSIO已经成功生产EOS区块。
2192031ms thread-0 http_plugin.cpp:242 add_handler ] add api url: /v1/acco unt_history/get_transaction
2192031ms thread-0 http_plugin.cpp:242 add_handler ] add api url: /v1/acco unt_history/get_transactions
2192031ms thread-0 net_plugin.cpp:2760 plugin_startup ] starting listener, ma x clients is 25
2192031ms thread-0 producer_plugin.cpp:161 plugin_startup ] producer plugin: plu gin_startup() begin
2192031ms thread-0 producer_plugin.cpp:166 plugin_startup ] Launching block produ ction for 1 producers.
*******************************
* *
* ------ NEW CHAIN ------ *
* - Welcome to EOSIO! - *
* ----------------------- *
* *
*******************************
Your genesis seems to have an old timestamp
Please consider using the --genesis-timestamp option to give your genesis a recent timestamp
2192031ms thread-0 producer_plugin.cpp:176 plugin_startup ] producer plugin: plu gin_startup() end
eosio generated block 0e03ce32... #1 @ 2018-04-23T00:36:32.500 with 0 trxs, lib: 0
eosio generated block 68b72661... #2 @ 2018-04-23T00:36:33.000 with 0 trxs, lib: 1
eosio generated block 65485d5d... #3 @ 2018-04-23T00:36:33.500 with 0 trxs, lib: 2
eosio generated block 4444c6a5... #4 @ 2018-04-23T00:36:34.000 with 0 trxs, lib: 3
eosio generated block 1b43b858... #5 @ 2018-04-23T00:36:34.500 with 0 trxs, lib: 4
下图描述了以上刚创建的单节点EOSIO,在上面的配置中,使用nodeos加载钱包插件来管理钱包,nodeos命令行参数中指定的eosio::wallet_api_plugin就是用来启动钱包管理的。无论是nodeos启动钱包管理还是keosd,cleos都是可用来管理钱包、管理账户和调用EOS.IO的功能。
二、配置
默认的配置文件夹路径如下:
mac: ~/Library/Applicat