nandibear.com
by Nandi Bear
May 8, 2020

As indicated in the previous article in regard to getting blocks here's another example of using the pool's API (v2).
You can get all transactions (PPLNS, PPS, Withdraws) all together a little easier. Be that as it may, I like checking my PPLNS payouts and don't want to expose any information related to my withdraws (also not particularly interested in seeing blank PPS HashRace transactions).
Will try to share a couple more of these early next week (examples: get pool's BCH hashrate, get your BCH hashrate).
You can either include the following code on the page you want the results to display on or you can save this as a file itself and call it on any page.
...
Read entire article: https://nandibear.com/bitcoin-com-mining-pool-api-v2-get-pplns-payouts-or-pps-payouts-using-pure-php