helium / blockchain-http

An http API for the helium blockchain database
https://helium.com
Apache License 2.0
47 stars 18 forks source link

Feature: earnings buckets #129

Closed allenan closed 3 years ago

allenan commented 3 years ago

We want to be able to answer questions like "what was the total HNT earned by all hotspots on the network between two timestamps?" and "what was the median hotspot earning between those timestamps?". We also want to be able to separate out earnings by "buckets" between those timestamps. So for a given hotspot, we could chart a bar graph for each day's earnings within the past week. Ideally the design of this API will be flexible enough to serve different use cases.

madninja commented 3 years ago

@allenan for clarification: How do buckets and the median values between two timestamps relate to each other?

allenan commented 3 years ago

the median would probably be top level between the timestamps, separate from the buckets

madninja commented 3 years ago

So technically a different endpoint or param I guess?

On Nov 10, 2020, at 4:12 PM, Andrew Allen notifications@github.com wrote:

the median would probably be top level between the timestamps, separate from the buckets

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/helium/blockchain-http/issues/129#issuecomment-724998296, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACZBVJL7SFO7PS55YQGVLSPG3DJANCNFSM4TRGFL6Q.