EOS合约开发第五章-钱包和账户手册

钱包和账户手册

一、创建和启动单个节点

使用以下命令来启动私有的单节点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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值