Request for Miner List(USER_DATA)
API Description
Request for Miner List
HTTP Request
GET /sapi/v1/mining/worker/list
Request Weight(IP)
5
Request Parameters
Name | Type | Mandatory | Description | For Example |
---|---|---|---|---|
algo | STRING | YES | Algorithm(sha256) | sha256 |
userName | STRING | YES | Mining account | test |
pageIndex | INTEGER | NO | Page number,default is first page,start form 1 | |
sort | INTEGER | NO | sort sequence(default=0)0 positive sequence,1 negative sequence | |
sortColumn | INTEGER | NO | Sort by( default 1): 1: miner name, 2: real-time computing power, 3: daily average computing power, 4: real-time rejection rate, 5: last submission time | |
workerStatus | INTEGER | NO | miners status(default=0),0 all,1 valid,2 invalid,3 failure | |
recvWindow | LONG | NO | ||
timestamp | LONG | YES |
Response Example
{
"code": 0,
"msg": "",
"data": {
"workerDatas": [
{
"workerId": "1420554439452400131", //Miner ID
"workerName": "2X73", //Miner's name
"status": 3, // Status:1 valid, 2 invalid, 3 no longer valid
"hashRate": 0, // Real-time rate
"dayHashRate": 0, //24H Hashrate
"rejectRate": 0, //Real-time Rejection Rate
"lastShareTime": 1587712919000 // Last submission time
},
{
"workerId": "7893926126382807951",
"workerName": "AZDC1.1A10101",
"status": 2,
"hashRate": 29711247541680,
"dayHashRate": 12697781298013.66,
"rejectRate": 0,
"lastShareTime": 1587969727000
}
],
"totalNum": 18530, // Total amount
"pageSize": 20 // Rows per page
}
}