SteemConnect4j Update (v1.3.4) - Add Beneficiaries , set payout type and more...
utopian-io·@bxute·
0.000 HBDSteemConnect4j Update (v1.3.4) - Add Beneficiaries , set payout type and more...
 This article will introduce the SDK in brief and then describe the updates. ## 1. What is SteemConnect4j? SteemConnect4j is an open source SteemConnect SDK written in Java for using SteemConnect v2 (SC2) API in Java-based projects like Android, Jetty, etc. It provides simple methods to interact with the Steem blockchain using access token received from the SteemConnect API. ## 2. How to use `steemconnect4j`? To use it, you need to build an instance of `SteemConnect` using the builder method and configure it according to your requirements. Something like this --  To create a post -- You need to use the built instance and call `.comment()` method on it. Like :  ## 3. What's in the update? In this new version of SDK, there are some additional parameters added to provide flexibility and control over post creation and its nature. ### 3.1. Configure `maxAcceptedPayout` This parameter allows you to decide max payout for a post. Generally, we set it to `1000000.000 SBD` or any large value. In case a user opts to decline its payout, you can set `0.000 SBD` ### 3.2. Configure `percent_steem_dollars` You might have been familiar with payout types: `50% SBD / 50% Power Up` , `100% Power Up` and `Decline Payout` on various steem based platforms. Using this parameter, you can set the payout type. For: **50% SBD / 50% Power Up** ``` percent_steem_dollars = 10000 maxAcceptedPayout = "10000000.00 SBD" ``` **100% Power Up** ``` percent_steem_dollars = 0 maxAcceptedPayout = "10000000.00 SBD" ``` **Decline Payout** ``` percent_steem_dollars = 0 maxAcceptedPayout = "0.00 SBD" ``` ### 3.3. Attach Beneficiaries You can attach beneficiaries with each post to receive part of the post's earning. List up beneficiary accounts like:  and pass the list object to `steemConnect` instance while creating the post. After the successful creation of the post, it will contain `beneficiaries` and its payout type. This was the update to `steemconnect4j` for now. This article contains answers to some typical questions like: - How to add beneficiaries to post in steemconnect ? - How to decline payouts using steemconnect ? - How to set payout type in steemconnect ? ### 4. What's next We will keep an eye open on bugs and areas of improvements in this SDK. ### 5. GitHub **Repo:** https://github.com/hapramp/steemconnect4j **Commit:** https://github.com/hapramp/steemconnect4j/commit/bdff2d1b058edf792a52de26ba11da3fe35408f1 ### 6. Series Backlinks -- 1. SteemConnect4j - Security Improvement and Bug Fixes **|** [Link](https://busy.org/@bxute/steemconnect4j-security-improvement-and-bug-fixes) 2. Introducing steemconnect4j **|** [Link](https://busy.org/@hapramp/introducing-steemconnect4j)
👍 steeming-hot, unittestaccount, bxute, the1ramp, disragafmi, cubrielebchai, motmagerbti, glismetide, tgewovsere, amcaceabvo, bitok.xyz, merlin7, whitebot, steemtaker, funtraveller, amosbastian, codingdefined, steemchoose, mcfarhat, leir, miniature-tiger, loshcat, scipio, jaff8, peerzadaaabid, statsexpert, helo, rupeshkumar390, shreya26, mightypanda, bullinachinashop, steem-ua, newsrx, xinvista, utopian-io, jga, tigerfish, tkp123, singhpratyush,