steemit / steem-python

The official Python (3) library for the Steem Blockchain.
https://steem.io
MIT License
153 stars 98 forks source link

How to set the"reward options" ? (100%SP, 50/50 and None) #275

Closed d-william closed 5 years ago

d-william commented 5 years ago

How to set the"reward options" when i submit a post ? I'm talking about the choices you have when you post 100% Steem Power 50% SBD and 50% SP Decline Payout

fraenk commented 5 years ago

it's all in the "options"

post(title, body, author, permlink=None, reply_identifier=None, json_metadata=None, comment_options=None, community=None, tags=None, beneficiaries=None, self_vote=False)

comment_options (str, dict) – JSON options object that can be attached to the post. Example:

comment_options = {
    'max_accepted_payout': '1000000.000 SBD',
    'percent_steem_dollars': 10000,
    'allow_votes': True,
    'allow_curation_rewards': True,
    'extensions': [[0, {
        'beneficiaries': [
            {'account': 'account1', 'weight': 5000},
            {'account': 'account2', 'weight': 5000},
        ]}
    ]]
}