Zergpool APIs

Simple REST API.

Wallet Status

request:

https://zergpool.com/api/wallet?address=WALLET_ADDRESS

result:
{
	"unsold": 0.00050362,     --currently in exchange or immature statuses
	"balance": 0.00000000,    --matured ready for payment balance
	"unpaid": 0.00050362,     --total unpaid unsold+balance
	"paid24h": 0.00000000,    --total amount payed
	"minpay": 0.0025,         --payout threshold, can be configured using pl= 
	"minpay_sunday": 0.0025,  --payout threshold on Sundays
	"txfee": 0.0001,          --tx fee deducted during payment
	"total": 0.00050362       --total unpaid + total payed
}
request:

https://zergpool.com/api/walletEx?address=WALLET_ADDRESS

result:
{
	"unsold": 0.00050362,                       --currently in exchange or immature statuses
	"balance": 0.00000000,                      --matured ready for payment balance
	"unpaid": 0.00050362,                       --total unpaid unsold+balance
	"paid24h": 0.00000000,                      --total amount payed during last 24h
	"paidtotal" : 0.00000000,                   --total amount payed 
	"minpay": 0.0025,                           --payout threshold, can be configured using pl= 
	"minpay_sunday": 0.0025,                    --payout threshold on Sundays
	"txfee": 0.0001,                            --tx fee deducted during payment
	"total": 0.00050362,                        --total unpaid + total payed
	"summary": [{                               --mining summary section
		"name": Equilibria,                     --coin name
		"algo": cryptonight_gpu,                --algorithm
		"worker_count": 1,                      --workers count
		"blockshare": 0.2773,                   --estimated block share in %
		"reward": 0.0126,                       --estimated block reward
		"hashrate_shared": "1.1 kh\/s",         --sum of hasharte in shared mode
		"ttf_shared": "7 mins",                 --estimated time to find next block in shared mode
		"hashrate_solo": "-",                   --sum of hasharte in solo mode
		"ttf_solo": "",                         --estimated time to find next block in solo mode
	}],
	"miners":[{	                                --miners information
		"version": "ccminer\/1.8.2",            --miners name
		"password": "d=96",                     --password configuration of your miner identified by a pool
		"ID": "",                               --value specified in ID= param of miner's password
		"algo": "decred",                       --mining algorithm
		"difficulty": 96,                       --miner's current difficulty level
		"subscribe": 1,                         --subscribe extranonce flag
		"accepted": 82463372.083,               --hashrate accepted by pool
		"rejected": 0                           --hashrate rejected by pool
	}],
	"payouts": [{                               --payout information
		"time": "1529749163", 
		"amount": 0.01714574, 
		"tx": "8a727e1b591034ad6bdea8be2d82849e8eeaeaf3427414c92327a77c9c56b667"
	}, {
		"time": "1529705825", 
		"amount": 0.02249281, 
		"tx": "491ed3628e7bc3349c7c8bae92baabdcd5edafd49e650c1d811e505a2afe5d93"
	}],
	"blocks": [{                               --wallet found block information
		"symbol": "AEON", 
		"height": 1223975, 
		"amount": 3.5972, 
		"algo": "k12", 
		"confirmations": 162, 
		"time": "1591465493", 
		"category": "generate", 
		"blockhash": "655101319a234aea134668a22835910da0dd7851e14b9871d4feaafb5f16e5a7"
	}, {
		"symbol": "AEON", 
		"height": 1223974, 
		"amount": 3.6042, 
		"algo": "k12", 
		"confirmations": 163, 
		"time": "1591465484", 
		"category": "generate", 
		"blockhash": "3735498657c5c7f7732a13ae2dc961ef7e7ac04bedf0541254dff87721cae84f" 
	}]
}

Pool Status

request:

https://zergpool.com/api/status

result:
{
	"x11": {                                     --algo information
		"name": "x11",                           --algorithm name     
		"port": 3533,                            --TCP connection port		
		"tls_port": 13533,                       --TLS/SSL secure connection port		
		"coins": 10,                             --amount of coins available in subject algo
		"fees": 1,                               --pool fee in %
		
		"hashrate": 269473938,                   --total hashrate in h/s on subject pool algo
		"hashrate_shared": 200000000,            --shared mode hashrate in h/s on subject pool algo
		"hashrate_solo": 69473938,               --solo mode hashrate in h/s on subject pool algo
		
		"workers": 5,                            --amount of workers mining in total
		"workers_shared": 3,                     --amount of workers mining in shared mode
		"workers_solo": 2,                       --amount of workers mining in solo mode		
				
		"estimate_current": "0.00000053653",     --earnings estimate in mBTC/Mh/day based on last 5 minutes submitted shares
		"estimate_last24h": "0.00000036408",     --earnings estimate in mBTC/Mh/day based on last 24h submitted shares
		
		"actual_last24h": "0.00035620",          --actual earning based on last 24h found blocks per hashrate unit specified in mbtc_mh_factor
		"actual_last24h_shared" : "0.00037620",  --actual earning in shared mode based on last 24h found coin blocks per hashrate unit specified in mbtc_mh_factor
		"actual_last24h_solo" : "0.00033620",	 --actual earning in solo mode based on last 24h found coin blocks per hashrate unit specified in mbtc_mh_factor
		
		"hashrate_last24h": 269473000,           --average hashrate during last 24h		
		"hashrate_last24h_shared": 69473000,     --average hashrate during last 24h in shared mode
		"hashrate_last24h_solo": 20000000000,    --average hashrate during last 24h in solo mode
		
		"rental_current": "3.61922463",          --not supported
		"mbtc_mh_factor" : 1000                  --multiplier, value 1 represents Mh, 1000 represents GH, 1000000 represents TH, 0.001 represents KH
		"algo_type" : 12                         --integer value of a 4-bit value representing platforms supported. Bit 3 = CPU, bit 2 = GPU, bit 1 = ASIC, bit 0 = FPGA
	},

	...
}
request:

https://zergpool.com/api/currencies

result:
{
	"BTX": {                                        --currencies information
		"algo": "bitcore",
		"port": 3556,
		"tls_port": 13556,                          --TLS/SSL secure connection port		
		"name": "BitCore",                          --coin name
		"symbol": "BTX",                            --coin symbol/ticker
		"height": 18944,                            --current blockchain height
		
		"workers": 181,                             --amount of workers mining in total		
		"workers_shared': 100,                      --amount of workers mining in shared mode
		"workers_solo": 81,                         --amount of workers mining in solo mode		
		
		"hashrate": 7267227499,                     --current total hashrate for this coin 
		"hashrate_shared": 700000000,               --current shared hashrate for this coin 
		"hashrate_solo": 267227499,                 --current solo hashrate for this coin 
		"network_hashrate": 233267227499,           --coin entire network hashrate

		"reward": 2.5,                              --coin reward amount

		"24h_blocks": 329,                          --amount of blocks found during last 24h in all modes
		"24h_blocks_shared" : 29,                   --amount of blocks found during last 24h in shared mode		
		"24h_blocks_solo" : 300,                    --amount of blocks found during last 24h in solo mode
					
		"24h_btc": 0.54471295,                      --amount of BTC equivalent of 24h found blocks in all modes
		"24h_btc_shared": 0.5671295,                --amount of BTC equivalent of 24h found blocks in shared mode 
		"24h_btc_solo": 0.52471295,                 --amount of BTC equivalent of 24h found blocks in solo mode
					
		"lastblock": 18945,                         --last block found height
		"timesincelast": 67,                        --time since last block found in sec
		"timesincelast_shared": 67,                 --time since last block found in shared mode in sec
		"timesincelast_solo": 120,                  --time since last block found in solo mode in sec 
					
		"noautotrade" : 1,                          --value 1 - coin is not supported for auto exchange mining, value 0 - coin is supported for auto exchange mining
					
		"estimate_current" : "0.00000053653",       --estimated earnings in mBTC/Mh/day based on current coin price and last 5 minutes shares
		"estimate_last24" :"0.00000053653",         --estimated earnings in mBTC/Mh/day based on coin last 24h price data and last 24h shares
		"actual_last24h" : "0.00035620",            --actual earning based on last 24h found coin blocks per hashrate unit specified in mbtc_mh_factor
		"actual_last24h_shared" : "0.00037620",     --actual earning in shared mode based on last 24h found coin blocks per hashrate unit specified in mbtc_mh_factor
		"actual_last24h_solo" : "0.00032620",       --actual earning in solo mode based on last 24h found coin blocks per hashrate unit specified in mbtc_mh_factor
		
		"mbtc_mh_factor" : 1000,                    --multiplier, value 1 represents Mh, 1000 represents GH, 1000000 represents TH, 0.001 represents KH
		
		"hashrate_last24h":193137521,               --amount of hash submitted towards mining subject coin during last 24h in all modes
		"hashrate_last24h_shared":193137521,        --amount of hash submitted towards mining subject coin during last 24h in shared mode
		"hashrate_last24h_solo":0,                  --amount of hash submitted towards mining subject coin during last 24h in solo mode
		

		"minpay":100,                               --coin amount for payment threshold
		"minpay_sunday":20,                         --lowered coin amount for payment threshold on Sundays
		
		"blocktime":60                              --average network block time in seconds based on pool data

	},

	...
}

Blocks

request:

https://zergpool.com/api/blocks

https://zergpool.com/api/blocks?coin=LTC

result:
[
{                                 --last 500 found blocks on the pool, last 250 blocks of certain coin specifying parameter
	"symbol":"CRP",            
	"time":"1527075226",             --unix timestamp
	"height":"250789", 
	"amount":5,
	"category":"new",                --new/immmature/confirmed               
	"difficulty":"0.00368",          --difficulty at pool with applied multipliers
	"difficulty_user":"0.006733",    --difficulty by user's miner
	"algo":"yescryptR16" 
	"type":"shared"                  --type of reward distribution shared or solo 
},        
        ...
]

Miners

request:

https://zergpool.com/api/miners

result:
[
{                                 --last joined miners  information
	"algo":"lyra2z",
	"version":"ccminer\/2.2.5",
	"count":"423"
},
        ...
}