BitShares Forum

Main => Technical Support => Topic started by: madforstrength on June 14, 2016, 11:48:39 am

Title: Issue in upgrading account
Post by: madforstrength on June 14, 2016, 11:48:39 am
Hi @xerion , @svk ,

I am developing functionality to upgrade account in my application. I have tried following:
Code: [Select]
res = client.upgrade_account("mbilal-knysys", True)
But Above code is giving me below error:
Code: [Select]
grapheneapi.grapheneapi.RPCError: 0 exception: unspecified
3030001 tx_missing_active_auth: missing required active authority
Missing Active Authority 1.2.100305

This similar error was occurring when I was trying to create a new account as well.

So I used this url instead to create new user:
Code: [Select]
https://bitshares.openledger.info/api/v1/accounts
I was wondering if you guys can help me out in finding some other way to upgrade account.

Thanks and Regards
Title: Re: Issue in upgrading account
Post by: xeroc on June 14, 2016, 11:52:36 am
All operations cost a fee and that fee needs to be paid by an existing account.
If you want to use the cli_wallet, then you need to import at least the ACTIVE private key for your account with "import_key <accountname> <privatekey>" first before you can do anything with it.
The private key can be obtained from OpenLedger in the "Permissions" page of your account
Title: Re: Issue in upgrading account
Post by: madforstrength on June 15, 2016, 03:47:49 am
@xeroc thanks for your reply,

well my wallet already has that account imported in it.

I dont know if this has something to do with the missing authority but I am using
Quote
wss://bitshares.dacplay.org/ws
as rpc endpoint for my wallet
Title: Re: Issue in upgrading account
Post by: madforstrength on June 15, 2016, 05:08:48 am
Ok, I found the issue, he account was imported in my wallet using "owner private key" not "active private key".

Once I imported the ACTIVE private key, it started working. Thanks a lot bro.