cleos wallet

1.安装docker

  • a. docker pull eosio/eos-dev:v1.3.0 拉取eos
  • b. docker network create eosdev 创建network
  • c.[自定义相关数据目录] $ docker run
    --name nodeos -d -p 8888:8888
    --network eosdev
    -v /tmp/eosio/work:/your_path/work
    -v /tmp/eosio/data:/your_path/data
    -v /tmp/eosio/config:/your_path/config
    eosio/eos-dev
    /bin/bash -c
    "nodeos (database 脏标志位 --hard-replay) -e -p eosio
    --plugin eosio::producer_plugin
    --plugin eosio::history_plugin
    --plugin eosio::chain_api_plugin
    --plugin eosio::history_api_plugin
    --plugin eosio::http_plugin
    -d /mnt/dev/data
    --config-dir /your_path/config
    --http-server-address=0.0.0.0:8888
    --access-control-allow-origin=*
    --contracts-console
    --http-validate-host=false"
  • c. docker run -d --name keosd --network=eosdev -i eosio/eos-dev /bin/bash -c "keosd --http-server-address=0.0.0.0:9876"
  • d. docker logs --tail 10 nodeos/keosd 查看nodeos/keosd 日志?节点,钱包组件是否开启成功
  • e.docker exec -it keosd bash 钱包创建要开启keosd后进入keosd bash 才能创建wallet
  • f.配置全局环境变量 alias cleos='docker exec -it nodeos /opt/eosio/bin/cleos --url http://127.0.0.1:8888 --wallet-url http://0.0.0.0:9876'
  • g.创建钱包 cleos wallet create (-n wallet_name 指定钱包名称) --to-console
  • h. cleos wallet unlock -n default --password master_password 解锁钱包 cleos wallet lock -n wallet_name锁定钱包

猜你喜欢

转载自www.cnblogs.com/hiraeth/p/9973905.html