Skip to content

Instantly share code, notes, and snippets.

@lucas-maicoin
Last active June 28, 2018 01:40
Show Gist options
  • Save lucas-maicoin/7b4fb6a8396e308deee3a553e5491688 to your computer and use it in GitHub Desktop.
Save lucas-maicoin/7b4fb6a8396e308deee3a553e5491688 to your computer and use it in GitHub Desktop.
EOS wallet

create a default wallet

$ cleos --wallet-url http://localhost:8900/ wallet create
Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5Jxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

create a wallet with name

$ cleos --wallet-url http://localhost:8900/ wallet create -n max
Creating wallet: max
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5Kxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

unlock a wallet

$ cleos --wallet-url http://localhost:8900/ wallet unlock -n max

list all wallets

$ cleos --wallet-url http://localhost:8900/ wallet list
Wallets:
[
  "default *"
  "max *"
]

lock all wallets

$ cleos --wallet-url http://localhost:8900/ wallet lock_all
Wallets:
[
  "default",
  "max"
]

Open an existed wallet

# wallet file: `~/eosio-wallet/max.wallet`
$ cleos --wallet-url http://localhost:8900/ wallet open -n max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment