Wallet
Last updated
Last updated
Description The subcommands can be used to interact with local wallet.
Subcommands
— Create a new wallet locally.
— Open an existing wallet.
— Lock wallet.
— Lock all unlocked wallets.
— Unlock wallet.
— Import private key into wallet.
— Remove key from wallet.
— Create private key within wallet.
— List opened wallets.
— List of public keys from all unlocked wallets.
— List of private keys from an unlocked wallet in WIF or PVT_R1 format.
This subcommand creates a wallet with the specified name. If no name is given, the wallet will be created with the name 'default'.
None.
-n
, --name
TEXT — The name of the new wallet.
-f
, --file
TEXT — Name of file to write wallet password output to (must be set, unless --to-console
is passed).
--to-console
— Print password to console.
This subcommand can be used to open an existing wallet.
None.
-n
, --name
TEXT — The name of the wallet to open.
Example 1
Example 2
Output
This subcommand can be used to lock wallet.
None.
-n
, --name
TEXT — The name of the wallet to lock.
Example 1
Example 2
Output
This subcommand can be used to lock all unlocked wallets.
None.
None.
Output
This subcommand can be used to unlock wallet.
None.
-n
, --name
TEXT — The name of the wallet to unlock.
To unlock a wallet, specify the password provided when it was created.
Output
This subcommand can be used to import private key into wallet.
None.
-n,--name
TEXT — The name of the wallet to import key into.
--private-key
TEXT — Private key in WIF format to import.
This subcommand can be used to remove key from wallet.
(string) key
— Public key in WIF format to remove (required).
-n
, --name
TEXT — The name of the wallet to remove key from.
This subcommand can be used to creates a key pair within the wallet so that you don't need to manually import it like you would with cleos create key. By default, this will create a key with the type "favored" by the wallet, which is a "K1" key. This subcommand also lets you create a key in "R1" format.
(string) key_type
— "K1" or "R1" key type to create. "K1" generates privileged key. Defaults to "K1".
-n
, --name
TEXT — The name of the wallet to create key into.
The subcommand can be used to list opened wallets ("*" means "unlocked").
None.
None.
Output
or when there are no wallets:
The subcommand can be used to list of public keys from all unlocked wallets. These are the keys that could be used to sign transactions.
None.
None.
Output
The subcommand can be used to list of private keys from an unlocked wallet in WIF or PVT_R1 format. It is possible to query for the public and private key pairs of an individual wallet. The wallet must already be unlocked and you must give the password again.
None.
-n
, --name
TEXT — The name of the wallet to list keys from.
--password
TEXT — The password returned by wallet create.
--password
TEXT — The password returned by .
--password
TEXT — The password returned by .