Return DiamondsValue with get-single-post API call #223
brootle
started this conversation in
Medium CIPs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now
get-single-postAPI request returnsDiamondCountbut in order to get total value of how much that is earned in $DESO we need to make separateget-diamonds-for-postAPI request that will return a list of diamonds withDiamondLevelfor each diamond given to the post. This operation becomes impossible when trying to get diamonds data for posts that have a lot of diamonds, the more diamonds post has the more time it takes to retrieve data. In this example it takes 10+ seconds to get data on every 25 diamonds.So this is my idea. Add
DiamondsValuetoget-single-postAPI request. Apps can use this data to effectively show to users how much money were made with different posts. And apps built on DeSo can use that for their marketing 🔥Beta Was this translation helpful? Give feedback.
All reactions