-
Notifications
You must be signed in to change notification settings - Fork 14
acquire_miner_hahrate
yangxing edited this page Jan 16, 2020
·
3 revisions
-
Description: Acquire miners realtime hashrate
-
Request Method: GET
-
Request Path: /res/openapi/v1/hashrate/worker
-
Signature Required: No
-
Request Parameter:
name | type | required | description |
---|---|---|---|
coin | string | yes | coin type |
group_id | int | no | miner group id. The id of default group is null. |
worker_status | string | no | active/unactive miner status |
page | int | no | page number |
limit | int | no | return amount, default: 50 |
- Response:
{
"code": 0,
"data": {
"count": 2,
"curr_page": 1,
"data": [
{
"coin": "BTC",
"group_id": 14,
"group_name": "group1",
"hashrate_10min": "278542945703",
"hashrate_1hour": "46423824283",
"hashrate_24hour": "0",
"last_active": 1545811200, # last active time
"reject_rate": "0",
"worker_id": 369, # miner id
"worker_name": "1x1", # miner name
"worker_status": "active" # miner status
},
{
"coin": "BTC",
"group_id": null,
"group_name": null,
"hashrate_10min": "0",
"hashrate_1hour": "0",
"hashrate_24hour": "0",
"last_active": 1545808266,
"reject_rate": "0",
"worker_id": 370,
"worker_name": "1x1",
"worker_status": "unactive"
}
],
"has_next": false,
"total": 2,
"total_page": 1
},
"message": "OK"
}
HTTP API Introduction
Account API
Hahrate API
- Acquire Account Hashrate
- Acquire Account Hashrate History
- Acquire Account Hashrate Chart
- Acquire Miner Hahrate
- Acquire Miner Hahrate Info
- Acquire Miner Hashrate History
- Acquire Miner Group Hashrate
- Acquire Miner Group Hashrate Info
Wallet API