Author Topic: HELP: User Issued Assets && Migration from bitshares 0.9  (Read 2656 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
depending on when you registered your name in BTS1, it may have been prefixed by "bts-"
- The wallet has a name
- it can contain many independent accounts
- the import should fetch your accounts, yes

Of course there are alternatives but they depend on which way you prefer to go. I would recommend to install the cli-tools from github/bitshares/bitshares-2 and use those to recover your funds.
you can read about how this works here:
http://docs.bitshares.eu/migration/howto-importing-wallet.html#cli-wallet

koteknik

  • Guest
@ xeroc

which I did: LOOKUP BALANCES but it responds no balances to claim. Therefore I suppose it didn't work, this but also the fact that I still have a single account created in Bitshares2. I know my accounts are there, I used the EXPLORER but I can't claim them!

Tell me if I'm wrong:
The wallet has name.
Each wallet has a main account and many child accounts if desired?
The import gets keys from main account and child accounts?
When I regenerated the keys for the wallet backupit responded with type1 and type2 keys for child accounts that's the reason of my supposition..

If the LOOKUP BALANCES don't work what are my alternatives?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
5) In bitshares-2 GUI, when importing keys I get 1497 keys imported, nevertheless I don't have any previous balances neither any account from my restored backup...
So now that is good news.
To get access to your funds you need to actually CLAIM them. You can do so by clicking the LOOKUP BALANCES tool in the wallet management console!

koteknik

  • Guest
Sorry for this delayed answer but I wanted to try whatevere I can before replying...

1) The commands I was doing were wrong: wallet_import_keys wasn't the right command for my json file, instead using wallet_restore_backup makes it work (thx xeroc).
2) After restoring from backup I exported keys to json file
3) When importing keys in the bitshares-2 via the GUI throw a 0 keys to import!
4) Back to bitshares-0.x, regenerate keys returns 400000 keys, exported to json again;
5) In bitshares-2 GUI, when importing keys I get 1497 keys imported, nevertheless I don't have any previous balances neither any account from my restored backup...

Now I will try to import via the CLI client to see if there is any positive change, but in case it won't what are the next steps?

Thx for your help and please PM me your BTS account name so I can send you a gift !  :)
« Last Edit: February 03, 2016, 09:46:33 am by koteknik »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Wired. The syntax looks all right. So you get an error when you try to import this into bts 0.9.3c (i mean, "restore from backup" using this file)

koteknik

  • Guest
Code: [Select]
of course, I'm just removed the keys..
[code LANG=json]

[
{
  "type": "master_key_record_type",
  "data": {
    "index": -1,
    "encrypted_key": "###",
    "checksum": "###"
  }
},
{
  "type": "property_record_type",
  "data": {
    "index": 1,
    "key": "next_record_number",
    "value": 13
  }
},
{
  "type": "property_record_type",
  "data": {
    "index": 2,
    "key": "version",
    "value": 113
  }
},
{
  "type": "property_record_type",
  "data": {
    "index": 3,
    "key": "automatic_backups",
    "value": true
  }
},
{
  "type": "property_record_type",
  "data": {
    "index": 4,
    "key": "transaction_scanning",
    "value": true
  }
},
{
  "type": "property_record_type",
  "data": {
    "index": 5,
    "key": "last_unlocked_scanned_block_number",
    "value": 0
  }
},
{
  "type": "property_record_type",
  "data": {
    "index": 6,
    "key": "default_transaction_priority_fee",
    "value": {
      "amount": 50000,
      "asset_id": 0
    }
  }
},
{
  "type": "property_record_type",
  "data": {
    "index": 7,
    "key": "transaction_expiration_sec",
    "value": 3600
  }
},
{
  "type": "key_record_type",
  "data": {
    "index": 8,
    "account_address": "BTSGrhBj4BGiothHkbzT7iTsmEvM8QpYffo3",
    "child_key_index": 0,
    "public_key": "###",
    "encrypted_private_key": "###",
    "valid_from_signature": false
  }
},
{
  "type": "property_record_type",
  "data": {
    "index": 9,
    "key": "next_child_key_index",
    "value": 1
  }
},
{
  "type": "key_record_type",
  "data": {
    "index": 10,
    "account_address": "BTSGrhBj4BGiothHkbzT7iTsmEvM8QpYffo3",
    "child_key_index": 1,
    "public_key": "###",
    "encrypted_private_key": "###",
    "valid_from_signature": false
  }
},
{
  "type": "account_record_type",
  "data": {
    "index": 11,
    "id": 0,
    "name": "MYACCOUNTNAME",
    "public_data": null,
    "owner_key": "###",
    "active_key_history": [[
        "2015-11-14T00:33:04",
        "###"
      ]
    ],
    "registration_date": "1970-01-01T00:00:00",
    "last_update": "2015-11-14T00:33:04",
    "last_child_key_index": 0,
    "block_production_enabled": false,
    "custom_data": {},
    "approved": 0
  }
},
{
  "type": "setting_record_type",
  "data": {
    "index": 12,
    "name": "current_account",
    "value": "MYACCOUNTNAME"
  }
}
]


Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
There once was an issue with a miasing or extra comma in the json backup file which resulted in an invalid format error.
Could you copy paste the last few lines of your json backup file?

koteknik

  • Guest
Sorry if I took a bit of time to answer but I rebuilt the bitshares (1st version), because I delete it a while ago..

The Bad Cast error comes from bitshares 2.0, when trying to import my json file with the command: wallet_import_keys_from_json <wallet filename> <password> <account>.

I decided to start from beggining, built the bitshares1 and  I tried to import my json file, I almost managed but now I get "Unknown account name"! I verified and this account exists and was registered, it also is the account name in the json file.. Could my json file be corrupted? I checked it and it seems normal, even if I'm not sure what it should look like!

Is there a way to transform the encrypted_owner_key and public_key to wif?

Finally, if you want give me an account name for me to transfer 1000 SUGAR as a reward for your help!

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
thx for your quick answer!

You were right, the asset was there just had to wait..

Nevertheless I still can't recover my accounts, I followed the guide but I get a:
bad_cast_exception: Bad Cast

Any ideas on what to do?

also should this post move to another topic as it goes into migration problems?..

Try to do it manually,  from BitShares 0.9.3c client for each account export 2 keys (owner and active) using following commands in console:
Quote
wallet_dump_account_private_key account_name owner_key
wallet_dump_account_private_key account_name active_key

When import these keys into BitShares 2, key by key. You should get your accounts back.
In this way there will be no balance imported.

thx for your quick answer!

You were right, the asset was there just had to wait..

Nevertheless I still can't recover my accounts, I followed the guide but I get a:
bad_cast_exception: Bad Cast

Any ideas on what to do?

also should this post move to another topic as it goes into migration problems?..
Describe your issue, step by step. More detailed, more helpful.
BitShares committee member: abit
BitShares witness: in.abit

Offline testz

thx for your quick answer!

You were right, the asset was there just had to wait..

Nevertheless I still can't recover my accounts, I followed the guide but I get a:
bad_cast_exception: Bad Cast

Any ideas on what to do?

also should this post move to another topic as it goes into migration problems?..

Try to do it manually,  from BitShares 0.9.3c client for each account export 2 keys (owner and active) using following commands in console:
Quote
wallet_dump_account_private_key account_name owner_key
wallet_dump_account_private_key account_name active_key

When import these keys into BitShares 2, key by key. You should get your accounts back.

koteknik

  • Guest
thx for your quick answer!

You were right, the asset was there just had to wait..

Nevertheless I still can't recover my accounts, I followed the guide but I get a:
bad_cast_exception: Bad Cast

Any ideas on what to do?

also should this post move to another topic as it goes into migration problems?..

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
The asset you created is there, you just need some patient when opening your account -> asset page.

For migration, please check http://docs.bitshares.eu/bitshares/migration/index.html
BitShares committee member: abit
BitShares witness: in.abit

koteknik

  • Guest
Hi,

I created 2 days ago a new User Issued Asset: SUGAR; now it doesn't show up in my assets neither there is a market for it..

I'm also having much trouble to recover all my accounts from bitshares 0.9.. I get "wrong array type" when importing my json file; for the moment I can only recover one account without any balances..