main
  zpoolPool Wallet Graphs Miners FAQ Beta Site Next Payout: 23:31 EST (0 hrs 27 mins)

ZPOOL API

Simple REST API.

Wallet Status

request:

http://www.zpool.ca/api/wallet?address=WALLET_ADDRESS

result:
{
	"unsold": 0.00050362,
	"balance": 0.00000000,
	"unpaid": 0.00050362,
	"paid24h": 0.00000000,
	"total": 0.00050362
}
request:

http://www.zpool.ca/api/walletEx?address=WALLET_ADDRESS

result:
{
	"unsold": 0.00050362,
	"balance": 0.00000000,
	"unpaid": 0.00050362,
	"paid24h": 0.00000000,
	"total": 0.00050362,
	"miners":[{
		"version": "ccminer\/1.8.2",
		"password": "d=96",
		"ID": "",
		"algo": "decred",
		"difficulty": 96,
		"subscribe": 1,
		"accepted": 82463372.083,
		"rejected": 0
	}]
       ,"payouts":[{
               "time": 1529860641,
               "amount": "0.001",
               "tx": "transaction_id_of_the_payout"
       }]
}
Payouts of the last 24 hours are displayed, please use a block explorer to see all payouts.

Pool Status

request:

http://www.zpool.ca/api/status

result:
{
	"x11": {
		"name": "x11",
		"port": 3533,
		"coins": 10,
		"fees": 1,
		"hashrate": 269473938,
		"workers": 5,
		"estimate_current": "0.00053653",
		"estimate_last24h": "0.00036408",
		"actual_last24h": "0.00035620",
		"hashrate_last24h": 269473000,
		"rental_current": "3.61922463"
	},

	...
}
request:

http://www.zpool.ca/api/currencies

result:
{
	"BTX": {
		"algo": "bitcore",
		"port": 3556,
		"name": "BitCore",
		"height": 18944,
		"workers": 181,
		"shares": 392,
		"hashrate": 7267227499,
		"24h_blocks": 329,
		"24h_btc": 0.54471295,
		"lastblock": 18945,
		"timesincelast": 67
	},

	...
}

Blocks

request:

http://www.zpool.ca/api/blocks

result:
{
        "coin": "XVG-lyra",
        "time": "1526474646",
        "height": "2141899",
        "amount": "730.245278",
        "category": "immature",
        "difficulty": "22940.032795",
        "difficulty_user": "777518.086908"
},      
        
        ...
}

Miners

request:

http://www.zpool.ca/api/miners

result:
{
        "algo": "scrypt",
        "version": "cgminer\/4.9.0",
        "count": "3070"
},

        ...
}

Rental Status

request:

http://www.zpool.ca/api/rental?key=API_KEY

result:
{
	"balance": 0.00000000,
	"unconfirmed": 0.00000000,
	"jobs":
	[
		{
			"jobid": "19",
			"algo": "x11",
			"price": "1",
			"hashrate": "1000000",
			"server": "stratum.server.com",
			"port": "3333",
			"username": "1A5pAdfWLUFXoqcUb6N9Fre2EApr5QLNdG",
			"password": "xx",
			"started": "1",
			"active": "1",
			"accepted": "586406.2014805333",
			"rejected": "",
			"diff": "0.04"
		},

		...

	]
}

Rental Price

Set the rental price of a job.

request:

http://www.zpool.ca/api/rental_price?key=API_KEY&jobid=xx&price=xx

Rental Hashrate

Set the rental max hashrate of a job.

request:

http://www.zpool.ca/api/rental_hashrate?key=API_KEY&jobid=xx&hashrate=xx

Start Rental Job

request:

http://www.zpool.ca/api/rental_start?key=API_KEY&jobid=xx

Stop Rental Job

request:

http://www.zpool.ca/api/rental_stop?key=API_KEY&jobid=xx