SCROLL DOWN FOR SOLUTION
src
Json
["claim_reward_balance",
{"account":"fulltimegeek",
"reward_steem":"0.442 STEEM",
"reward_sbd":"0.364 SBD",
"reward_vests":"1481.978010 VESTS"}]
Buffer
390c66756c6c74696d656765656bba0100000000000003535445454d00006c0100000000000003534244000000009a305558000000000656455354530000
operation_id (39)
byte | value |
---|---|
01 | 39 |
string_len (fulltimegeek)
byte | value |
---|---|
02 | 0c |
"fulltimegeek" string encoded
byte | value |
---|---|
03 | 66 |
04 | 75 |
05 | 6c |
06 | 6c |
07 | 74 |
08 | 69 |
09 | 6d |
10 | 65 |
11 | 67 |
12 | 65 |
13 | 65 |
14 | 6b |
STEEM amount (0.442 x 1000 == 442 == 0x1BA)
byte | value |
---|---|
15 | ba |
16 | 01 |
17 | 00 |
18 | 00 |
19 | 00 |
20 | 00 |
21 | 00 |
22 | 00 |
STEEM precision
byte | value |
---|---|
23 | 03 |
STEEM symbol ("STEEM")
byte | value |
---|---|
24 | 53 |
25 | 54 |
26 | 45 |
27 | 45 |
28 | 4d |
29 | 00 |
30 | 00 |
My methods for serializing STEEM, SBD and VESTS are identical, except for the precision ... any thoughts? The sooner I resolve this the sooner I can finish my Steem Android application.
Paging super nerds: @vandeberg @theoretical @roadscape @anyx
SOLUTION: Byte01 is suppose to be 0x27 not decimal 39
Hey @fulltimegeek,
I think I don't really understand your issue. Maybe it's that you want to automate the process auf claiming your rewards and you struggle with this?
Can you tell me which programming language you are using? And how your current code actually looks like? Here is an issue related to "claiming rewards" in the javascript repo of steemit. https://github.com/steemit/steem-js/issues/215
Maybe this already solves your issue? Otherwise more information would be appreciated to be able to help you. :)
Best
Java
I will look into this issue and see if it's related to mine. Thank you for the pointers.
@fulltimegeek So you are directly interacting with the RPC node and creating the operations on your own? Then I'm pretty sure that your need to handle the order also on your own. The RPC API needs an array of parameters, and not an object. But normally the RPC node wrappers are handling this. What are you using? Is there a java implementation for steem?
Otherwise checkout my other comment, I've described my theory there.
That is correct.
Order should only matter in serialization I believe. Json have maps with keys so order shouldn't be that critical. I'm not 100% sure tho on that. But, I'll play around with it.
I wish STINC had a utility or website that allowed anyone to construct operations and then spit out the raw buffer for one to sign. That would help A LOT ...
This the json that is getting send to the RPC node. Please adapt it and it will work. :)
{"id":2,"jsonrpc":"2.0","method":"call","params":["network_broadcast_api","claim_reward_balance",[account, steem, sbd, vests]]}
in case it does not work, I'll have a look in a couple of hours.
Well it looks like you are having immense fun here!
Sadly, this is beyond my pay grade, but I've put the link into the Utopian development discord room in the hope some bright spark picks it up and can help you out.
Good luck!
Thank you Asher for passing this on to the Utopian dev crew! Much appreciated :)
lol... well I'm ruled out then... :)
We can sit warming the bench together today Dave :)
I was sitting on the sideline too. Cheering on. :)
good go have you helping too @beeyou! :P
We had to let the brains tackle this one. 😁
lol... yes you and Asher had it covered! I was standing on the sidelines with a megaphone saying "good luck and keep up the good work" :)
lol... glad it got solved without us Asher because this one wasn't anywhere near my wheelhouse! :P
Sorry, can't help... But I loved the gif. It's how I feel when I deal with people and try and explain cryptocurrency!
Hope you get it resolved
Do you have a specific error message you are receiving? That may help pinpoint the issue. Also, are you connecting to api.steemit.com or a different node? Lastly, are other operations working for you and it's just this one that is causing a problem, or is this the first operation you are trying to code?
Server is telling me "missing required posting authority:Missing Posting Authority fulltimegeek"
I'm signing this operation+tx just like I do all the other ones, which do work, so I guess there is a problem with serialization before it's signed ...
Appreciate you stopping by Matt. I saw FTG updated the post with a solution. World of finicky numbers that I am lucky to not be involved in. :)
SOLUTION: Byte01 is suppose to be 0x27 not decimal 39
dear @yabapmatt plz check your steem chat i waiting your reply and and check memo in your wallet
@yabapmatt i configure bidding bot with you plz reply
Passing to @bennierex . I'm wondering whether he encountered while developing Steemify.
Steemify is more of a consumer in this regard, but @fulltimegeek, what encoding are you using and how do you sign your transaction?
The problem was I wasn't converting the operation id (39) to hex.
I'm encoding the strings with UTF-8 and using my own Java lib for signing.
Thanks for stopping by @bennierex and trying to help a nerd in distress :)
Glad you figured it out!
To the question in your title, my Magic 8-Ball says:
Hi! I'm a bot, and this answer was posted automatically. Check this post out for more information.
I'm also beginning to understand why people downvote bots
Lol
Of he really was a magic ball he would have answered this question correctly.
At least he tried to help, poor bot xD
You lost me at Hello! :(
I'm beginning to understand why I ran away from programming back in the day.
I know some programmer friends who might be able to help though.
Get over here @afolwalex.
No, come back! We need more of you! :)
I might come back in the future, but for now a man's gotta focus on writing.
My game development career may not be entirely over.
I always go with "the answer is 4".
I did forward the post to a couple of developers I chat with on discord to see if they can take a look at it.
@taskmaster4450 Actually your answer should be 42, based on this: https://simple.wikipedia.org/wiki/42_(answer) :P
@fulltimegeek I don’t know the answer but I need to thank you for the support. I’ve been grinding 6 months and you’re the first real person invested into the system to show me support. You’re a great example of what a orca should be on Steemit
I wish I could help with this but I don't know much about coding.
Are you developing an steem application? By any chance do you have more info about this?
Android app and not IOS? :( I understand the proprietary limitations though.
Beyond my skillset, unfortunately. The only developer I 'know via the blockchain' is @yabapmatt. I don't know if he check mentions, but I can resteem. From what I can tell about him, he would assist if he has the knowledge.
Reasons why I program for Android and not iOS:
Thank you for the resteem! Much appreciated :)
I am fortunate to have my answers readily available on google when I need help with excel formulas or the dreaded photoshop. Don't believe this issue can be 'googled'.
Good luck with finding a solution. I saw others passing it around too; hopefully a nerd will come to the rescue. :)
I really don't know.
What I do know that if you're trying to freeze the whole blockchain again, like happened a few weeks ago, then we're lucky that you didn't succeed 😋😆😜
Which blockchain was that? I'm only aware of that happening to EOS.
Steem was also gone for some hours. I think even over half a day.
I could stare at it for a year and still not know what the hell is going on
Haha that GIF is the best. I have it on my computer as well. Seems a bit smaller and less pixelated though.
Gah, I need to stop messing around and join in on the Steem programming. I'm a know-nothing who knows nothing.
Fantastic post friend
That sounds really great!! maybe you could make a post explaining more!
Fantastic post friend
If I knew about programming I would be delighted to help you solve that problem! I hope you manage to find the solution :)