How to import a GUI-wallet account into CLI-wallet¶
Table of Contents
CLI and GUI wallet are two separated applications. They use separated ways to represent backups. You can manually import keys from the GUI into the CLI to have a CLI-wallet.
Your wallet private keys have extremely important roles. By importing your private keys to a new CLI-wallet, you can control your account funds from the CLI-wallet.
Login to your GUI-wallet
Go to [Settings] – [Permissions]. There are Active, Owner, and Memo tabs.
In the each tab, click your public key (or the key image). It will open a private key viewer.
On the form, click [Show], (it might ask you to login) save your each private key and public key information to use later.
Keep the private keys information to a safe place.
./programs/cli_wallet/cli_wallet --server-rpc-endpoint ws://localhost:8090 Or ./programs/cli_wallet//cli-wallet -s wss://node.market.rudex.org
You should get a prompt:
Set a password for your CLI-wallet and unlock.
New Feature: Keep your password safe. New features will not show your password while you are typing in. Click here to check it out.
This password does not need to be the same with your GUI-wallet password. You will create a new wallet and it will be secured by the new password.
new >>> set_password mypass123 set_password mypass123 null locked >>> unlock mypass123 unlock mypass123 null unlocked >>>
Import your each private key you saved from your GUI-wallet into your new CLI-wallet.:
import_key your-account-name ThisIsThePrivateKeyYouSaved
And you are done. No need to claim balance. Your account balances are in there.
If you use the wallet to transfer funds, you just need to import the active private key. However, if you have different Active and Memo keys and use a Memo when you transfer, import the memo private key also.
list_my_accounts to see your imported account.
And to check balance:
unlocked >>> list_account_balances your-account-name list_account_balances your-account-name 31016.69330 GPH 0 CNY 0 USD unlocked >>>
Sets a new password on the wallet.| The wallet must be either `new’ or ‘unlocked’ to execute this command.
Unlocks the wallet.
(e.g., gethelp “list_accounts”) | Returns detailed help on a single API command.
to view the current synchronization
Returns info such as client version, git version of graphene/fc, version of boost, openssl.
import_key <name> “<wifkey>” | Imports the private key for an existing account. | The private key must match either an owner key or an active key for the named account.
to view the current synchronization | Lists all accounts controlled by this wallet. This returns a list of the full account objects for all accounts whose private keys we possess.
a list of the given account’s balances | List the balances of an account. Each account can have multiple balances, one for each type of asset owned by that account. The returned list will only contain assets for which the account has a nonzero balance
Returns information about the given account.
import_balance <name> [“*”] true | This call will construct transaction(s) that will claim all balances controled by wif_keys and deposit them into the given account
Suggests a safe brain key to use for creating your account. create_account_with_brain_key() requires you to specify a ‘brain key’, | create_account_with_brain_key| the signed transaction registering the account | Creates a new account and registers it on the blockchain.
Dumps all private keys owned by the wallet. | The keys are printed in WIF format. You can import these keys into another wallet using import_key()
upgrade_account faucet true | Upgrades an account to prime status. This makes the account holder a ‘lifetime member’.
register_account <name> <owner-public_key> <active-public_key> <registrar_account> <referrer_account> <referrer_percent> <broadcast> | Registers a third party’s account on the blockckain.
transfer <from> <to> <amount> <asset> <memo> <broadcast> | Transfer an amount from one account to another.
transfer2 <from> <to> <amount> <asset> <memo> <broadcast> | This method works just like transfer, except it always broadcasts and returns the transaction ID along with the signed transaction.
e.g., get_account_history “name” “5” | Returns the most recent operations on the named account.
get_privatre_key <public key> | Get the WIF private key corresponding to a public key. The private key must already be in the wallet.