So much easier with steem-python :)
def claim_reward_balance(self,
reward_steem='0 STEEM',
reward_sbd='0 SBD',
reward_vests='0 VESTS',
account=None):
""" Claim reward balances.
By default, this will claim ``all`` outstanding balances. To bypass this behaviour,
set desired claim amount by setting any of `reward_steem`, `reward_sbd` or `reward_vests`.
Args:
reward_steem (string): Amount of STEEM you would like to claim.
reward_sbd (string): Amount of SBD you would like to claim.
reward_vests (string): Amount of VESTS you would like to claim.
account (string): The source account for the claim if not ``default_account`` is used.
"""
Yeah, but Python enforces whitespacing which goes against everything I believe. Code should be freedom damnit!
Also my code is 2x the size because I've got everything commented so noobs can better understand the program and modify it. :)
How to claim rewards with steem python:
steem.claim_reward_balance(account = 'youraccount')
:P
Aye. It's easier.. But it's friggin' Python.
I couldn't tell you why exactly, but Python makes me feel 2% cooler B)
I prefer the dirty chaos of Javascript..
Forcing myself to adhere to a strict set of spacing rules when coding hampers my creativity and ultimately slows me down.
This is why I use JS over Python when I can.
No reason we couldn't abstract the library to this level in JavaScript as well :)