Sub-account Worker List Interface
Description
Sub-account worker list interface is used to obtain sub-account worker list and worker hashrate data, include the data of 10 minutes hashrate, 30 minutes hashrate, 1 hour hashrate in real time, rejection number and payment method.
URL
/operator/api/workers.htm- Parameter
| Parameter | Type | Description |
|---|---|---|
| opId | String | Operator ID |
| coin | String | Coin type (BTC、LTC、ZEC……) |
| params | String | Check the table below |
| sign | String | Signature,check "Interface Authorization" description for details. |
record description:
| Name | Type | Description |
|---|---|---|
| userId | String | User ID |
| key | String | API key |
| nonce | Long | Incremental random number |
| workerActive | String | active state(active,inactive,all) |
| sortOrder | String | sortord(asc or desc) |
| sortName | String | sort field (hashrate10m, hashrate30m, hashrate1h, hashrate1d, userWorkerId) |
| page | Integer | Page |
| pageSize | Integer | Quantity of each page |
- Return Value
{ "code": "000000", "data": { "rows": [ { "worker": "antminer_1", "last10m": "0", "last30m": "0", "last1h": "0", "last1d": "0", "prev10m": "0", "prev30m": "0", "prev1h": "0", "prev1d": "0", "accepted": "0", "stale": "0", "dupelicate": "0", "other": "0" } ], "page": 1, "totalPage": 1, "pageSize": 10, "totalRecord": 1 }, "message": "ok" }