为了方便快捷使用eos下的命令可以做一个软链接(类似我们Windows的快捷方式)
root@aries-virtual-machine:/# ls -al /usr/local/bin/
total 24
drwxr-xr-x 2 root root 4096 8月 27 14:28 .
drwxr-xr-x 11 root root 4096 8月 27 14:20 ..
lrwxrwxrwx 1 root root 26 8月 27 14:25 cleos -> /usr/local/eosio/bin/cleos
lrwxrwxrwx 1 root root 33 8月 27 14:28 eosio-abigen -> /usr/local/eosio/bin/eosio-abigen
lrwxrwxrwx 1 root root 29 8月 27 14:26 eosiocpp -> /usr/local/eosio/bin/eosiocpp
lrwxrwxrwx 1 root root 33 8月 27 14:28 eosio-s2wasm -> /usr/local/eosio/bin/eosio-s2wasm
lrwxrwxrwx 1 root root 36 8月 27 14:28 eosio-wast2wasm -> /usr/local/eosio/bin/eosio-wast2wasm
lrwxrwxrwx 1 root root 26 8月 27 14:26 keosd -> /usr/local/eosio/bin/keosd
-rwxr-xr-x 1 root root 13464 8月 27 10:16 mongoc-stat
lrwxrwxrwx 1 root root 27 8月 27 14:25 nodeos -> /usr/local/eosio/bin/nodeos
创建钱包
cleos wallet create -n aries
ERROR: Either indicate a file using "--file" or pass "--to-console"
新版发现创建钱包出错, 需要加上 上面红色的参数即可
cleos wallet create -n aries --to-console
Creating wallet: aries
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5JbWTPvjRNHwNAoR5o55JbyXet8ntwghuuCLATgcKCXLN1quBRS"
创建了一个钱包: aries
钱包创建位置:
新版钱包默认位置: $HOME/eosio-wallet
/home/aries/eosio-wallet/aries.wallet , 当然我感觉现在eos慢慢在规范, 所以和刚刚发布出来的时候比较放钱包的位置也在改变(最好使用find -name "aries.wallet" 进行查找, 网上的很多教程还是比较老的版本)
root@aries-virtual-machine:/home/aries/tmp/eos# cleos wallet create --to-console
Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5K84X1VdtZfR8TcWkdpXDPPFyUtTtnSrNM6KCDYc3iBESFtofwp"
cleos wallet create -n aries --to-console
Creating wallet: aries
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5J8MDHK524911oQZo57oY7WNA4dcmds1io496XhWqmobCSYFm1X"
cleos wallet
ERROR: RequiredError: Subcommand required
Interact with local wallet
Usage: cleos wallet SUBCOMMAND
Subcommands:
create Create a new wallet locally
open Open an existing wallet
lock Lock wallet
lock_all Lock all unlocked wallets
unlock Unlock wallet
import Import private key into wallet
remove_key Remove key from wallet
create_key Create private key within wallet
list List opened wallets, * = unlocked
keys List of public keys from all unlocked wallets.
private_keys List of private keys from an unlocked wallet in wif or PVT_R1 format.
stop Stop keosd (doesn't work with nodeos).
那么我可以查看钱包list
cleos wallet list
Wallets:
[
"aries *"
]
当然你也可以删除钱包, 大不了重新再创建一个钱包, 有兴趣的可以试一试
网友评论