Author

Topic: General way to get current block reward for any alt-coin? (Read 739 times)

member
Activity: 112
Merit: 10
It's not a matter of how, it's a matter of when. Block rewards, depending on the code, either increase or decrease over time. The calculations are simple if you know what those timeframes are and they vary between each coin.
newbie
Activity: 4
Merit: 0
Sultanen,

Did you ever find out an answer to this question?  I am trying to figure out the same thing.   The best thing I can think of is you could examine the most recent block to see what it's block reward was.


Markm,

If that is really the case, what would stop me from modifying the code on my copy of the randomcond to always output the maximum allowable value on these "random" coins?

Somehow the network must agree on the block reward, no?

member
Activity: 84
Merit: 10
Im not interested in the exact amount a random coin block will produce, if its random from 1-200.000 i see the block reward as 100.000. But Bitbar for example started at 1 and is decreasing, coinchoose tells me the reward now is like 0,16. How did they fetch that?
legendary
Activity: 2940
Merit: 1090
A whole bunch of the last spate of scamcoins tried to "randomise" rewards, some you can predict ahead of time maybe if their "random" number generator is deterministic but others use the previous block as part of the input to the generator or the final award amount so for those you will not be able to figure out what the block reward is going to be for a block until you have seen the previous block, and of course you will not know which previous block the next block will choose to build on either unless you see all the competing blocks that are hoping they will be confirmed...

...So until 120 blocks later you will not really know for sure what the block reward was...

(120 meaning however many blocks it takes in that chain for a block to be considered "mature".)

-MarkM-
member
Activity: 84
Merit: 10
The API for most block explorers doesent have a query for this or am i missing something? =/
member
Activity: 84
Merit: 10
Im looking for a way to extract the current block reward for any cryptocurrency. Some coins have a formula that explains how the coins will be generated, sometimes with an half time and so on wich makes it easy but some coins, like BitBar, has no information on how the reward is regulated.

Im looking to get the data programmatically and i don't want to extract it from coinchoose or some similar site.

Thanks for your help!
Jump to: