You are viewing a single comment's thread from:

RE: Instantaneous Steemit Account Creation Script

in #utopian-io7 years ago

Hi @mcfarhat,

I'm struggling to get this script to run, I've filled in the wif, the owner_wif and the new_account and left everything else as is... and keep getting the message:

k.AssertionError {name: "AssertionError", actual: 128, expected: 149, > >operator: "==", message: "Expected version 128, instead got 149", …}>actual: 128expected: 149generatedMessage: falsemessage: "Expected >version 128, instead got >149"name: "AssertionError"operator: "=="stack: "AssertionError: >Expected version 128, instead got 149↵ at Function.value >(https://cdn.steemjs.com/lib/latest/steem.min.js:12:12470)↵ at p >(https://cdn.steemjs.com/lib/latest/steem.min.js:12:15470)↵ at >Function.value >(https://cdn.steemjs.com/lib/latest/steem.min.js:12:14884)↵ at >Function.value >(https://cdn.steemjs.com/lib/latest/steem.min.js:12:14727)↵ at >Object.d.signTransaction >(https://cdn.steemjs.com/lib/latest/steem.min.js:16:11426)↵ at >https://cdn.steemjs.com/lib/latest/steem.min.js:16:12249↵ at i >(https://cdn.steemjs.com/lib/latest/steem.min.js:1:25484)↵ at o._settlePromiseFromHandler (https://cdn.steemjs.com/lib/latest/steem.min.js:1:19894)↵ at o._settlePromise (https://cdn.steemjs.com/lib/latest/steem.min.js:1:20697)↵ at o._settlePromise0 (https://cdn.steemjs.com/lib/latest/steem.min.js:1:21398)↵ at o._settlePromises (https://cdn.steemjs.com/lib/latest/steem.min.js:1:22728)↵ at o._fulfill (https://cdn.steemjs.com/lib/latest/steem.min.js:1:21769)↵ at o._resolveCallback (https://cdn.steemjs.com/lib/latest/steem.min.js:1:18630)↵ at o._settlePromiseFromHandler (https://cdn.steemjs.com/lib/latest/steem.min.js:1:20049)↵ at o._settlePromise (https://cdn.steemjs.com/lib/latest/steem.min.js:1:20697)↵ at o._settlePromise0 (https://cdn.steemjs.com/lib/latest/steem.min.js:1:21398)"proto: Error undefined

(Sorry for the mess).
I've tried both your code in this post and the code in GitHub with no luck. The user definitely doesn't exist before or after running this code. I've got other HTML scripts on Steem-js to work okay, but this one is a struggle. Do you know where I might be going wrong?

Sort:  

Hey @aussieninja,
Yea I've had that error at some point in time.
You've got an issue with the WIF you are using.
Try using the private active key for the owner, i believe this could fix it.
Let me know how that goes.

Hi @mcfarhat!
Thanks so much for your reply! I wasn't sure if commenting on an older post would work or not.

The private active key? I tried a randomly generated WIF, my own WIF, but never thought of my active key... genius... okay, I'll try that and let you know.

Hi @mcfarhat!

That was amazing advice.... and totally worked, thank you.

I might have totally stuffed up though... to be on the safe side, I used my private active key in owner_wif and since I knew it was a valid key, I used the exact same for wif as well.

The account created fine... but trying to log in with the new account and my private active key as the password isn't working. I'm just getting the error message 'Incorrect Password'. Did I break it?

Okay glad it worked.
Well you would need to use whatever you used in the "new account" WIF field as the password for the account.

Absolutely....!

Except, that's the one that isn't working. I copy and paste it directly from my code (from 'var wif =') that I used to create the account and just get 'Incorrect Password". It's exactly the same as my own Private Active Key.

When I try to log in as myself... with my own Private Active Key, I get the message "This password is bound to your account's active key and can not be used to login to this page. You may use this active key on other more secure pages like the Wallet or Market pages."

I'm wondering if I stuffed up because I used a code that looks like a private active key as a password and the system validation doesn't allow that to be a password... except I can't get in to change it.

Does that make sense?

nah don't worry, not all is lost lol
okay so for your new account, in order to know what your other keys are, you can do the following in your code:

after defining the var wif=....;
there are few lines of code which generate the keys "active", "owner", "posting"
you need to add a console.log entry to show those for you, and then try using one of those to login again since the wif is not working.
If i'm not mistaken, the owner is most likely the one to work.

If you still face issues, feel free to reach me on discord: mcfarhat#6013 and I can probably help better there.