Blurtopian Development - Blurt Richlist API

in blurtopian •  2 months ago 

BANNER_2048x512 _post - MF.png

Do you want to know who the biggest hodlers of Blurt are? This was previously available via https://blocks.blurtwallet.com/#/richlist.

However, since the API to retrieve that information has been put down, @megadrive requested for a new API to retrieve such list. I didn't know how to implement it until @saboin gave a hint on how to retrieve the list of all accounts in Blurt.

Once that part of the program was down, it was then just a matter retrieving each account's balance and storing them. Since I'm most familiar with MongoDB, I opted to use it to store the data. It uses around 350Mb.

Code are available here:

https://gitlab.com/blurt/openblurt/blurtopian/blurt-richlist


@eastmael's Witness Projects


Find my contributions valuable? Please consider voting for my witness:

https://blurtwallet.com/~witnesses?highlight=eastmael

Banner3_Orange.png

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!
Sort Order:  

Congratulations! This post has been upvoted by the @blurtcurator communal account,
You can request a vote every 12 hours from the #getupvote channel in the official Blurt Discord.Don't wait to join ,lots of good stuff happening there.


Gracias por compartir tu publicación en #Blurt. Tu esfuerzo significa mucho para nosotros; por eso has recibido un voto positivo.

Te invito a votar por @blurtlatam como Testigo / Witness

1


https://biapi.blurtopian.com/api/richlist
Looks like it's not displaying the rich list. Can you please double-check or I'm doing something wrong?

It's an API. The text displayed on your browser needs to be processed by a front-end . Here's a sample front-end that displays the list:

https://bi.blurt-now.com/richlist

Thank you
It worked perfectly.