Bitcoin Forum
July 06, 2024, 05:56:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: General way to get current block reward for any alt-coin?  (Read 700 times)
Sultanen (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
December 27, 2013, 12:56:39 AM
 #1

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!
Sultanen (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
December 27, 2013, 08:35:26 AM
 #2

The API for most block explorers doesent have a query for this or am i missing something? =/
markm
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
December 27, 2013, 09:25:06 AM
 #3

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-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
Sultanen (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
December 28, 2013, 01:40:34 AM
 #4

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?
CryptoSteve
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 17, 2014, 04:49:17 AM
 #5

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?

cthulu1
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
January 17, 2014, 04:53:56 AM
 #6

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!