HSBI API: Show Sponsor with HSBI unit and Date - Sponsoren anzeigen mit der HSBI Anzahl und dem Datum

DE (EN below)

In meinem letzten Beitrag, der schon fast 2 Wochen alt ist, habe ich gezeigt, wie man die VotingPower erhält bzw. errechnet.

HSBI

Habt ihr schon einmal ein HSBI erhalten oder gar einen gesponsort?
Ich hatte je bereits in einem Beitrag gezeigt, wie ihr das mit HiveJS machen könnt. Nun zeige ich euch, wie man sich ausgeben lassen kann, von wem man ein HSBI erhalten hat. Dazu kann man die API nutzen, die ihr unter https://api.hivesbi.com/docs/ finden könnt.

Durch den Aufruf der URL https://api.hivesbi.com/v1/transactions/?sponsee=mein-senf-dazu kann man ganz einfach diese Abfrage ausführen, dazu gibt man nur am Ende den Usernamen an, der die HSBI erhalten hat, wie in dem Beispiel den Usernamen meines Hauptaccounts @mein-senf-dazu, jedoch ohne das @.

Schon erhält man alle nötigen Daten. Wichtig ist, dass ihr nicht die Shares nehmt, denn das sind die Gesamtshares in einem Transfer. Da man mit einem Transfer an mehrere User HSBI sponsern kann.

Ihr müsst also das Array sponsees nach dem Nutzernamen durchsuchen und die dort gefundenen Units nutzen.

Das Beispiel findet ihr wie immer hier auf jsfiddle.

Wer Fragen hat, kann gern ein Kommentar da lassen. Am besten @mein-senf-dazu erwähnen, damit ich es mitbekomme.

EN

In my last post, which is almost 2 weeks old, I showed how to get or calculate the VotingPower.

HSBI

Have you ever received an HSBI or even sponsored one?
I had already shown you in a post how to do that with HiveJS. Now I'll show you how to output who you received an HSBI from. For this you can use the API, which you can find at https://api.hivesbi.com/docs/.

By calling the URL https://api.hivesbi.com/v1/transactions/?sponsee=mein-senf-dazu you can easily execute this query, just add the username who received the HSBI at the end, like in the example the username of my main account @mein-senf-dazu but without the @.

Already you get all the necessary data. It is important that you do not take the shares, because these are the total shares in a transfer. Because you can sponsor HSBI with one transfer to several users.

So you have to search the array sponsees for the username and use the units found there.

As always, you can find the example here on jsfiddle.

If you have any questions, feel free to leave a comment. It's best to mention @mein-senf-dazu so that I get it.

Translated with www.DeepL.com/Translator (free version)



0
0
0.000
16 comments
avatar

Ist das dann von oben nach unten der Reihenfolge nach, die HSBI die ich bekommen, bzw gegeben habe?
Also ist der letze von mir von splatts?

image.png

Und wie deute ich das:

image.png

0
0
0.000
avatar

Ja genau du hast von splats einen bekommen,
Beim anderen hat danielhuhservice 2 Shares übertragen, 1 an dich und ein an andre.

Deswegen darf man nicht die Shares betrachten die angezeigt werden sondern die Units.

Wenn du auf den link bei jsfiddle gehst kannst dein Nick eingeben und bekomnst die Liste für dich alleine angezeigt die du bekommen hast.

Morgen mache ich einen Beitrag wenn ich schaffe wie man sehen kann wem man etwas gesponsort hat

0
0
0.000
avatar

AH cool. Sowas hab ich schon gesucht. Perfekt. !PGM

0
0
0.000
avatar

Sent 0.1 PGM - 0.1 LVL- 1 STARBITS - 0.05 DEC - 15 SBT - 0.1 THG - tokens to @eddwood

remaining commands 0

BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!

The tokens that the command sends are: 0.1 PGM-0.1 LVL-0.1 THGAMING-0.05 DEC-15 SBT-1 STARBITS-[0.00000001 BTC (SWAP.BTC) only if you have 2500 PGM in stake or more ]

5000 PGM IN STAKE = 2x rewards!

image.png
Discord image.png

Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP

Get potential votes from @ pgm-curator by paying in PGM, here is a guide

I'm a bot, if you want a hand ask @ zottone444


0
0
0.000
avatar
0
0
0.000
avatar

Congratulations @hive-coding! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You published more than 20 posts.
Your next target is to reach 30 posts.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Check out our last posts:

LEO Power Up Day - January 15, 2023
HiveBuzz supports meetups of the Hive Austrian Community in Graz
The Hive Gamification Proposal Renewal
Support the HiveBuzz project. Vote for our proposal!
0
0
0.000
avatar

Also ich schaue immer hier nach:
https://www.hivesbi.com/userinfo/?user=mein-senf-dazu

und für Transaktionen hier:

https://www.hivesbi.com/transaction-history/enrolled-hive-SBI/?user=mein-senf-dazu

hab gleich deinen Namen eingesetzt...

lg !PGM mit etwas !invest_vote 🤠

0
0
0.000
avatar

Sent 0.1 PGM - 0.1 LVL- 1 STARBITS - 0.05 DEC - 15 SBT - 0.1 THG - tokens to @reiseamateur

remaining commands 9

BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!

The tokens that the command sends are: 0.1 PGM-0.1 LVL-0.1 THGAMING-0.05 DEC-15 SBT-1 STARBITS-[0.00000001 BTC (SWAP.BTC) only if you have 2500 PGM in stake or more ]

5000 PGM IN STAKE = 2x rewards!

image.png
Discord image.png

Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP

Get potential votes from @ pgm-curator by paying in PGM, here is a guide

I'm a bot, if you want a hand ask @ zottone444


0
0
0.000
avatar

Habs leider jetzt erst gesehen.
Ja ich weiß das es das gibt, kurz nachdem ich den abeitrag fertig hatte, bzw. mitten drin, weiß nicht mehr genau, habe ichs gesehen.

Geht aber ja darum, das man die Api nutzen kann, ggf braucht ja jemand da weitere Infos bzw. Will damit was anderes bauen.

Das ist ja das worums bei diesem Account geht, leider funktioniert aber die Api nicht richtig :(

0
0
0.000