SteemConnect4j Update (v1.3.4) - Add Beneficiaries , set payout type and more...

in #utopian-io5 years ago (edited)

QmXVGoj2vx4ojo98kLXxVeUioeJUjsEpCcBdUGWSyn3PHB.png

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 --
steemconnect_builder.png

To create a post --
You need to use the built instance and call .comment() method on it.
Like :
post_creation.png

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:
beneficiary.png

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
  2. Introducing steemconnect4j | Link
Sort:  

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]

Great post, visually appealing for a...

Thanks for the awesome review @helo

When given the choice, please us...

I will try to put PR links instead of commits from next time :)

Can you show me some apps using this library?

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.

Thank you for your review, @helo! Keep up the good work!

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

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!

Congratulations @bxute! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 700 upvotes. Your next target is to reach 800 upvotes.

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:

Saint Nicholas challenge for good boys and girls

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @bxute! You received a personal award!

1 Year on Steemit

Click here to view your Board of Honor

Do not miss the last post from @steemitboard:

Saint Nicholas challenge for good boys and girls

Support SteemitBoard's project! Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.034
BTC 63956.43
ETH 3320.30
USDT 1.00
SBD 3.92