Open osirisr opened 6 years ago
Facing same issue any solutions
Sounds like an invalid private key, make sure you're not passing your public key
Solution - I was using the wrong key. You should use the posting key for this kind of method. Posting keys typically start with STM. - Too bad this API has poor documentation and vague error messages.
@osirisr what is posting key? how do you get it?
I have same issue. What is public key? Is it different to the key is given when I sign up Steem?
Hi @soorichu. When you sign up on steem, as password you pass in Seed for random number generator. With this seed you can always generate all your private keys. (The first 4 random number generator results are your private keys). With your private keys you generate all public keys and during registration process you pass to the STEEM blockchain this 4 public keys, which are some kind of your fingerprints.
If you want you may generate all your private keys without this seeding method, however in this case you will have to remember all 4 private keys instead of 1 password. In that case you won't have anything like "steem password".
Quite annoying that this is not documented. Solution is to use private posting key.
Expected behavior
A successful API call - in this case, posting an article to STEEM.
Actual behavior
Get the following error code. No idea what it means since its not documented anywhere -_-
AssertionError: Expected version 128, instead got 149
How to reproduce
Run the following JS code:
It looks like the steem.min.js file is too new or old for the "https://api.steemit.com" endpoint?