docs/02_cleos/03_command-reference/wallet/import.md
cleos wallet import [OPTIONS]
Where
Note: The arguments and options enclosed in square brackets are optional.
Imports private key into wallet. This command will launch keosd if it is not already running.
The following information shows the different positionals and options you can use with the cleos wallet import command:
-h,--help - Print this help message and exit-n, --name TEXT - The name of the wallet to import key into.--private-key TEXT - Private key in WIF format to import.cleos and keosd.
[[info | Note]]
| Cleos and keosd are bundled with the EOSIO software. Installing EOSIO will also install the cleos and keosd command line tools.cleos wallet import
The command asks for the private key. Enter it.
5KDNWQvY2seBPVUz7MiiaEDGTwACfuXu78bwZu7w2UDM9A3u3Fs
Example Output
private key: imported private key for: EOS5zG7PsdtzQ9achTdRtXwHieL7yyigBFiJDRAQonqBsfKyL3XhC
open and unlocked.cleos wallet import --name my_wallet --private-key 5KDNWQvY2seBPVUz7MiiaEDGTwACfuXu78bwZu7w2UDM9A3u3Fs
Where
--name my_wallet = Tells the cleos wallet import command to import the key to my_wallet
--private-key 5KDNWQvY2seBPVUz7MiiaEDGTwACfuXu78bwZu7w2UDM9A3u3Fs = Tells the cleos wallet import command the private key to import
Example Output
imported private key for: EOS5zG7PsdtzQ9achTdRtXwHieL7yyigBFiJDRAQonqBsfKyL3XhC