dashed-slug.net › Forums › CoinPayments.net Wallet Adapter extension support › Can I show sum of user balances on front end of website – POS
Tagged: anonymized transactions, Balances, transactions, user balances
- This topic has 4 replies, 2 voices, and was last updated 7 years, 5 months ago by
alexg.
-
AuthorPosts
-
July 17, 2018 at 12:05 pm #3671
Anonymous
InactiveHi,
Is it possible to show the sum of all user balances on the front end of the website?
How do I do that?Is it also possible to show all transactions made on the front end of the website?
Ofcourse this would be without showing which user made which transactions, just the coins and the amount + time.Any help would be appreciated!
Regards,
NickJuly 18, 2018 at 8:14 am #3680alexg
KeymasterHello Nick,
Thanks for sending your suggestions. I imagine that you are trying to build a crowdfunding or ICO site.
Unfortunately, what you suggest is not currently possible with the frontend’s architecture. All data delivered to the frontend passes through the JSON API, and the API only exposes data that is relevant to the current user.
I can add some static shortcode to display the total user balances. I cannot think of an elegant way to display anonymized transactions efficiently. It would require pagination and would generally be a mess. This would probably require a new extension as the core plugin cannot be easily tailored towards that goal.
I will add a shortcode for displaying the total user balances.
hope this answers your questions
kind regards
July 18, 2018 at 12:35 pm #3689Anonymous
InactiveHi Alex,
Thanks a lot for your response. We are making a Proof of stake site for a cliënt.
I understand completely what u are saying about the transactions.
A shortcode to display the total user balances would be great. Is it possible to show the total of each coin of all users.
For example :
Coin 1 – 9829398 coins total
Coin 2 – 8213 coins totalLooking forward to your response!
Best regards,
Nick
July 19, 2018 at 8:34 am #3696alexg
KeymasterYes, this is possible.
I will add it to the backlog and will implement it soon.
kind regards
July 25, 2018 at 10:52 am #3899alexg
KeymasterHello Nick,
This is now added to the latest version of the plugin,
3.6.0. The shortcode is[wallets_total_balances].Please see the relevant blog post and the accompanying documentation for details.
kind regards
-
AuthorPosts
- You must be logged in to reply to this topic.
