Author Topic: Moving from the web wallet to the cli wallet  (Read 4354 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?