為了方便快捷使用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
創(chuàng)建錢包
cleos wallet create -n aries
ERROR: Either indicate a file using "--file" or pass "--to-console"
新版發(fā)現(xiàn)創(chuàng)建錢包出錯, 需要加上 上面紅色的參數(shù)即可
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"
創(chuàng)建了一個錢包: aries
錢包創(chuàng)建位置:
新版錢包默認位置: $HOME/eosio-wallet
/home/aries/eosio-wallet/aries.wallet 届良, 當(dāng)然我感覺現(xiàn)在eos慢慢在規(guī)范锌杀, 所以和剛剛發(fā)布出來的時候比較放錢包的位置也在改變(最好使用find -name "aries.wallet" 進行查找, 網(wǎng)上的很多教程還是比較老的版本)
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 *"
]
當(dāng)然你也可以刪除錢包逝钥, 大不了重新再創(chuàng)建一個錢包屑那, 有興趣的可以試一試