-
Notifications
You must be signed in to change notification settings - Fork 1k
API Reference
Sebastian Grewe edited this page Jun 6, 2013
·
21 revisions
mmcfe-ng support some API methods to fetch information in JSON format. This list should reflect the current state of the API. All methods used are called via:
http://<serverURL>/index.php?page=api&action=<method>&api_key=<user_api_key>[&<argument>=<value>]
This table lists all methods and their arguments available.
Token
: Requires a valid API Key (api_key
in the URL); Admin
: Requires to be a site admin
API Action | Arguments | Desctipion | Token | Admin |
---|---|---|---|---|
getblockcount |
none | Get current block height in blockchain | Y | N |
getblocksfound |
limit |
Get last limit blocks found |
Y | N |
getcurrentworkers |
none | Get amount of current active workers | Y | N |
getdifficulty |
none | Get current difficulty in blockchain | Y | N |
getestimatedtime |
none | Get estimated time to next block based on pool hashrate (seconds) | Y | N |
getpoolhashrate |
none | Get current pool hashrate | Y | N |
getpoolsharerate |
none | Get current pool share rate (shares/s) | Y | N |
gettimesincelastblock |
none | Get time since last block found (seconds) | Y | N |
public |
none | Fetch public pool statistics, no authentication required | N | N |
getuserworkers |
id |
Fetch a users worker status, both id and username work for id
|
Y | Y |
getuserworkers |
id |
Fetch a users overall status, both id and username work for id
|
Y | Y |
-
- installation of Redis requires TCL 8.5 or newer TCL Download Page