Esempio n. 1
0
def top_contributors():
	"""Fetch top contributors data."""
	d = make_request('gettopcontributors')
	return json.loads(d)
Esempio n. 2
0
def estimated_time():
	"""Get estimated time to next block based on pool hashrate (seconds)."""
	d = make_request('getestimatedtime')
	return json.loads(d)
Esempio n. 3
0
def pool_sharerate():
	"""Get current pool share rate (shares/s)."""
	d = make_request('getpoolsharerate')
	return json.loads(d)
Esempio n. 4
0
def current_workers():
	"""Get amount of current active workers."""
	d = make_request('getcurrentworkers')
	return json.loads(d)
Esempio n. 5
0
def difficulty():
	"""Get current difficulty in blockchain."""
	d = make_request('getdifficulty')
	return json.loads(d)
Esempio n. 6
0
def user_sharerate():
	"""Fetch a users share rate	."""
	d = make_request('getusersharerate')
	return json.loads(d)
Esempio n. 7
0
def pool_info():
	"""Get the information on pool settings."""
	d = make_request('getpoolinfo')
	return json.loads(d)
Esempio n. 8
0
def blocks_found():
	"""Get last N blocks found as configured in admin panel."""
	d = make_request('getblocksfound')
	return json.loads(d)
Esempio n. 9
0
def dashboard():
	"""Fetch all dashboard related information."""
	d = make_request('getdashboarddata')
	return json.loads(d)
Esempio n. 10
0
def navbar():
	"""Get the data displayed on the navbar."""
	d = make_request('getnavbardata')
	return json.loads(d)
Esempio n. 11
0
def user_workers():
	"""Fetch a users worker status."""
	d = make_request('getuserworkers')
	return json.loads(d)
Esempio n. 12
0
def user_transactions():
	"""Get a users transactions."""
	d = make_request('getusertransactions')
	return json.loads(d)
Esempio n. 13
0
def public():
	"""Fetch public pool statistics."""
	d = make_request('public')
	return json.loads(d)
Esempio n. 14
0
def block_last():
	"""Get time since last block found (seconds)."""
	d = make_request('gettimesincelastblock')
	return json.loads(d)
Esempio n. 15
0
def pool_status():
	"""Fetch overall pool status."""
	d = make_request('getpoolstatus')
	return json.loads(d)
Esempio n. 16
0
def block_count():
	"""Get current block height in blockchain."""
	d = make_request('getblockcount')
	return json.loads(d)
Esempio n. 17
0
def pool_hashrate():
	"""Get current pool hashrate."""
	d = make_request('getpoolhashrate')
	return json.loads(d)
Esempio n. 18
0
def block_stats():
	"""Get pool block stats."""
	d = make_request('getblockstats')
	return json.loads(d)
Esempio n. 19
0
def hourly_hashrates():
	"""Get detailed pool hashrate history."""
	d = make_request('gethourlyhashrates')
	return json.loads(d)
Esempio n. 20
0
def user_status():
	"""Fetch a users overall status."""
	d = make_request('getuserstatus')
	return json.loads(d)
Esempio n. 21
0
def user_balance():
	"""Fetch a users balance."""
	d = make_request('getuserbalance')
	return json.loads(d)