Post
Topic
Board Mining speculation
Re: How to calculate bitcoin earnings in FPPS
by
philipma1957
on 30/07/2020, 14:09:28 UTC
Thank you for your replies guys, you have been very helpful.

In case someone else may be interested you can see my updated formula below:

bitcoinPerDay = ((minerHashrate * (blockReward + avgRewardFee) * numberOfSecondsPerDay) / (estimatedNextDifficulty * 2^32)) * poolFeeMultiplier;

For reference:

I have used the API from BTC.com to calculate the average block fee reward of the last 8 mined blocks.


The results of my FPPS calculation are now also pretty close to the results of the mining calculator at https://btc.com/tools/mini-mining-calculator.
The accuracy may be improved by including more than 8 blocks into the average block reward fee calculation. I will be testing this, but for now I am quite happy with the performance.

you could offer an 8 block fee  estimate and a longer 2016 block one.

but your short term choice is good. If i used your calculator I would only use the shorter one.