BitShares Forum

Main => Technical Support => Topic started by: mostar on October 20, 2015, 08:59:49 am

Title: Moving from the web wallet to the cli wallet
Post by: mostar on October 20, 2015, 08:59:49 am
Hi,

I Didn't find any reference regarding how to move my wallet from the web wallet to the cli wallet.

Can I use them in parallel with the same account?

Thanks
Title: Re: Moving from the web wallet to the cli wallet
Post by: cube on October 20, 2015, 10:11:14 am
Yes you can.

From the webwallet, go into your account->permission->owner permission->click on the account key-> show the private key and copy it down

Go to cli wallet->

import_key myaccountname myprivatekeystring true
Title: Re: Moving from the web wallet to the cli wallet
Post by: xeroc on October 20, 2015, 10:27:45 am
you will need to import the OWNER key if you want to edit the account settings and
you will need to import the ACTIVE key if you want to spend funds
Title: Re: Moving from the web wallet to the cli wallet
Post by: mostar on October 20, 2015, 11:16:27 am
Code: [Select]
import_key myaacountname myprivkey true

Output:
Quote
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id:
    {}
    th_a  wallet.cpp:530 get_account

you will need to import the OWNER key if you want to edit the account settings and
you will need to import the ACTIVE key if you want to spend funds

Which commands import OWNER and ACTIVE keys

I already used the "Owner Permissions" private key in this command:

Code: [Select]
import_key myaacountname myprivkey true
Title: Re: Moving from the web wallet to the cli wallet
Post by: xeroc on October 20, 2015, 11:46:42 am
you can do the same with the active key

import_key myaacountname active_wif_key true
Title: Re: Moving from the web wallet to the cli wallet
Post by: mostar on October 20, 2015, 12:22:23 pm
I did

Code: [Select]
import_key myaacountname my-Owner-Permissions-private-key true
import_key myaacountname my-Active-Permissions-private-key true

In both cases the output was:
Quote
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id:
    {}
    th_a  wallet.cpp:530 get_account

list_my_accounts

Output:
Quote
list_my_accounts
[]

Look like some thing missing.
Title: Re: Moving from the web wallet to the cli wallet
Post by: liondani on October 20, 2015, 12:33:29 pm
Is it safe when active key is the same with the owner key?
Title: Re: Moving from the web wallet to the cli wallet
Post by: xeroc on October 20, 2015, 01:07:23 pm
I did

Code: [Select]
import_key myaacountname my-Owner-Permissions-private-key true
import_key myaacountname my-Active-Permissions-private-key true

In both cases the output was:
Quote
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id:
    {}
    th_a  wallet.cpp:530 get_account

list_my_accounts

Output:
Quote
list_my_accounts
[]

Look like some thing missing.


sure about your account name? try find your name in
https://bitshares.org/wallet/#/explorer/accounts

it may have been prefixed with bts-
Title: Re: Moving from the web wallet to the cli wallet
Post by: xeroc on October 20, 2015, 01:07:36 pm
Is it safe when active key is the same with the owner key?
yes it is safe
Title: Re: Moving from the web wallet to the cli wallet
Post by: mostar on October 20, 2015, 01:41:32 pm

sure about your account name? try find your name in
https://bitshares.org/wallet/#/explorer/accounts

it may have been prefixed with bts-

Yes I'm sure.  Found it in https://bitshares.org/wallet/#/explorer/accounts
It don't have "bts-" prefixed
Title: Re: Moving from the web wallet to the cli wallet
Post by: xeroc on October 20, 2015, 01:48:26 pm
when you run wallet_import .. the account name afterwards has to MATCH the account name registered with the private key .. not sure what you are doing wrong here :(
Title: Re: Moving from the web wallet to the cli wallet
Post by: mostar on October 20, 2015, 01:57:39 pm
when you run wallet_import .. the account name afterwards has to MATCH the account name registered with the private key .. not sure what you are doing wrong here :(

Its new cli_wallet installation. I didn't try to run "wallet_import" only  "import_key", What is the correct order on commands?
Title: Re: Moving from the web wallet to the cli wallet
Post by: xeroc on October 20, 2015, 05:19:23 pm
import_key is the correct command ..
Title: Re: Moving from the web wallet to the cli wallet
Post by: fav on October 21, 2015, 01:34:06 pm
import_key is the correct command ..

got the same errors in windows. won't let me import my priv key
Title: Re: Moving from the web wallet to the cli wallet
Post by: xeroc on October 21, 2015, 01:47:47 pm
examples:

Code: [Select]
import_key "nathan" 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3or
Code: [Select]
import_accounts <path to exported json> <password of wallet you exported from>
@fav: what's the error?
Title: Re: Moving from the web wallet to the cli wallet
Post by: fav on October 21, 2015, 01:59:27 pm
examples:

Code: [Select]
import_key "nathan" 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3or
Code: [Select]
import_accounts <path to exported json> <password of wallet you exported from>
@fav: what's the error?

we got it figured.

you have to set a password first and unlock the wallet in order to import your private key.

thx to telegram group :)
Title: Re: Moving from the web wallet to the cli wallet
Post by: xeroc on October 21, 2015, 02:00:34 pm
dang .. forgot about that :| woops
Title: Re: Moving from the web wallet to the cli wallet
Post by: mostar on October 24, 2015, 02:21:28 pm
My wallet is open and it still not working:

I did

Code: [Select]
set_password somepassword
unlock somepassword
import_key "myaacountname" my-Owner-Permissions-private-key true
import_key "myaacountname" my-Active-Permissions-private-key true

In both cases the output was:
Quote
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id:
    {}
    th_a  wallet.cpp:530 get_account

list_my_accounts

Output:
Quote
list_my_accounts
[]

The account name is in
https://bitshares.org/wallet/#/explorer/accounts

Please advise
Title: Re: Moving from the web wallet to the cli wallet
Post by: mostar on November 09, 2015, 10:10:45 am
Any one have an idea?
Title: Re: Moving from the web wallet to the cli wallet
Post by: fav on November 09, 2015, 10:20:48 am
try without " "
Title: Re: Moving from the web wallet to the cli wallet
Post by: xeroc on November 09, 2015, 11:44:56 am
if you have participated in the testnets with the same wallet you need to create a new wallet (e.g. by renaming wallet.json)