Create Private/Public key pairs
Wallets are repositories of public-private key pairs. Private keys are needed to sign operations performed on the blockchain.
Create Default Wallet
# The first step is to create a wallet. Use cleos wallet create to create a new "default" wallet using the option --to-console for simplicity.
cleos wallet create --file walletpassword.txt
Open the Wallet
Wallets are closed by default. To begin, run the following:
cleos wallet open
Unlock it
Unlock the wallet that was created in the previous point.
cleos wallet unlock
Create Key
Create a new account key and make sure to keep it safe.
cleos create key --to-console
Import key
Import the key generated in last step
cleos wallet import PRIVATE-KEY
Last updated
Was this helpful?