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
https://github.com/hapramp/steemconnect4j/pull/30
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for the awesome review @helo
I will try to put PR links instead of commits from next time :)
Yes, We made this utiltiy tool for our app 1ramp.
I would like you to try 1ramp once and provide your valuable feedback so that we can improve our user experience.
I am not sure about other apps using it.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for your review, @helo! Keep up the good work!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi @bxute!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey, @bxute!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @bxute! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word
STOP
Do not miss the last post from @steemitboard:
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @bxute! You received a personal award!
Click here to view your Board of Honor
Do not miss the last post from @steemitboard:
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit