Author Topic: Moving from the web wallet to the cli wallet  (Read 4306 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
if you have participated in the testnets with the same wallet you need to create a new wallet (e.g. by renaming wallet.json)

Offline fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav

Offline mostar

  • Full Member
  • ***
  • Posts: 97
    • View Profile

Offline mostar

  • Full Member
  • ***
  • Posts: 97
    • View Profile
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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
dang .. forgot about that :| woops

Offline fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
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 :)

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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?

Offline fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
import_key is the correct command ..

got the same errors in windows. won't let me import my priv key

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
import_key is the correct command ..

Offline mostar

  • Full Member
  • ***
  • Posts: 97
    • View Profile
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?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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 :(

Offline mostar

  • Full Member
  • ***
  • Posts: 97
    • View Profile

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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Is it safe when active key is the same with the owner key?
yes it is safe

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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-

Offline liondani

  • Hero Member
  • *****
  • Posts: 3737
  • Inch by inch, play by play
    • View Profile
    • My detailed info
  • BitShares: liondani
  • GitHub: liondani
Is it safe when active key is the same with the owner key?

Offline mostar

  • Full Member
  • ***
  • Posts: 97
    • View Profile
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.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
you can do the same with the active key

import_key myaacountname active_wif_key true

Offline mostar

  • Full Member
  • ***
  • Posts: 97
    • View Profile
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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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

Offline cube

  • Hero Member
  • *****
  • Posts: 1404
  • Bit by bit, we will get there!
    • View Profile
  • BitShares: bitcube
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
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Offline mostar

  • Full Member
  • ***
  • Posts: 97
    • View Profile
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