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 , 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 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 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 so that I get it.
Translated with www.DeepL.com/Translator (free version)
Leave HSBI API: Show Sponsor with HSBI unit and Date - Sponsoren anzeigen mit der HSBI Anzahl und dem Datum to:
Read more #hive-169321 posts
Best Posts From hive-coding
We have not curated any of hive-coding's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From hive-coding
- Google VS ChatGPT (Plesk), and the winner is
- HiveSQL: Time of posts / Uhrzeit der Posts
- HiveSQL: Unused Hivepower - Ungenutze Hivepower
- HiveSQL: Age of active accounts
- HiveSQL: Monthly Active Users / User Registrations / Monthly Posts & Comments
- beneficiaries from DHF- begünstigte vom DHF
- HiveSQL: Top 100 HBD holders HiveSQL: Top 100 HBD Besitzer
- Which frontend ist used for Posting - Welches Frontend wird fürs Posten genutzt?
- KE with hive.min.js not possible - KE mit hive.min.js nicht möglich
- Get KE in HiveSQL - KE mit HiveSQL abfragen
- SPlex.gg Attack-Hide and Sort -Update
- SPlex.gg Attack-Hide and Sort
- hive-engine: How to retrieve data - Wie Daten abrufen
- Hivekeychain: how to send a comment - Wie sendet man ein Kommentar
- Keychain: How to sell your Dust Token - Wie verkauft man seine Staub-Token #19
- Hive-Engine: How to sell your Dust Token - Wie verkauft man seine Staub-Token
- HSBI API: Show Sponsor with HSBI unit and Date - Sponsoren anzeigen mit der HSBI Anzahl und dem Datum
- HiveJS: How to get current Voting Power ? - Wie erhält man die aktuelle Voting Power? #17
- HiveJS: get info and vote for witness - Informationen erhalten und für Witness voten #16
- Hivejs: How to delegtae hivepower - Wie delegiert man Hivepower? # 15