You are viewing a single comment's thread from:

RE: Is There a Super Nerd That Can Tell Me What I'm Doing Wrong Here? [SOLVED]

in #steemdev6 years ago (edited)

@fulltimegeek, I guess I've found the issue. How are you creating the json like this?
In my opinion you need to provide them in the right order. And json usually is ordered alphabetically.

Can you switch the steem with sbd?

[
  "claim_reward_balance",
  {
    "account": "fel1xw",
    "reward_sbd": "0.000 SBD",
    "reward_steem": "0.000 STEEM",
    "reward_vests": "0.000000 VESTS"
  }
]

(I have nothing to claim right now)

You can find the documentation for the operation here a little bit: https://github.com/steemit/steem-js/blob/master/src/broadcast/operations.js

And the params are transformed to an array where the order is important:

  {
    "roles": ["posting", "active", "owner"],
    "operation": "claim_reward_balance",
    "params": [
      "account",
      "reward_steem",
      "reward_sbd",
      "reward_vests"
    ]
  }
Sort:  

Can you switch the steem with sbd?

I'll keep playing around with the json but I don't think that's what it is unfortunately ... I tried switching the two but to no avail ... :(

I believe the culprit is how the assets are serialized ...

I have no idea what I am doing but I noticed the diffrence between yours and his is that you have a single space after the : where he has a double space. not sure if that could throw everything into a tissy because I have now idea how to code unfortunatly.

Edit: the more examples I look up the more they all have the double space after the : . Hope it is that simple. In my line of work it is always the simple stuff that bites you and hurts the worst. We go by KISS = Keep It Simple Stupid. Works most of the time.

Can you switch the steem with sbd?

I will modify the json accordingly and see if that does the trick ... Thnx for the suggestion and links :)

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 53921.46
ETH 2250.39
USDT 1.00
SBD 2.30