main
     Home Pool Wallet Graphs Miners Rental Next Payout: 22:31 EST     © ffpool.net

YAAMP API

Simple REST API.

Pool Status

request:

http://ffpool.net/api/status

result:
{
	"x11":
	{
		"coins": 10, 
		"fees": 1, 
		"hashrate": 269473938, 
		"estimate_current": 0.00053653, 
		"estimate_last24h": 0.00036408, 
		"actual_last24h": 0.00035620
	},
		
	...
}

Wallet Status

request:

http://ffpool.net/api/wallet?address=BITCOIN_WALLET

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

Rental Status

request:

http://ffpool.net/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://ffpool.net/api/rental_price?key=API_KEY&jobid=xx&price=xx

Rental Hashrate

Set the rental max hashrate of a job.

request:

http://ffpool.net/api/rental_hashrate?key=API_KEY&jobid=xx&hashrate=xx

Start Rental Job

request:

http://ffpool.net/api/rental_start?key=API_KEY&jobid=xx

Stop Rental Job

request:

http://ffpool.net/api/rental_stop?key=API_KEY&jobid=xx