Mining

Request for Miner List (USER_DATA)

Weight(IP): 5

get/sapi/v1/mining/worker/list

Query parameters

algostring required

Algorithm(sha256)

userNamestring required

Mining Account

pageIndexinteger

Page number, default is first page, start form 1

sortinteger

sort sequence(default=0)0 positive sequence, 1 negative sequence

sortColumninteger

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

workerStatusinteger

miners status(default=0)0 all, 1 valid, 2 invalid, 3 failure

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

List of workers

codeinteger required
msgstring required

Example response

{
  "data": {
    "workerDatas": [
      {
        "workerId": "1420554439452400131",
        "workerName": "2X73",
        "status": 3,
        "lastShareTime": 1587712919000
      }
    ],
    "totalNum": 18530,
    "pageSize": 20
  }
}

Changes

Changed in 1 of the 26 revisions of this API.617

  • a484ce871a72617See the full diff
    • for the query request parameter pageIndex, the type/format was changed from string/ to integer/int32

      request-parameter-type-changed

    • for the query request parameter recvWindow, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter sort, the type/format was changed from integer/ to integer/int32

      request-parameter-type-changed

    • for the query request parameter sortColumn, the type/format was changed from integer/ to integer/int32

      request-parameter-type-changed

    • for the query request parameter timestamp, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter workerStatus, the type/format was changed from integer/ to integer/int32

      request-parameter-type-changed

    • the response property code became required for the status 200

      response-property-became-required

    • the response property code became required for the status 400

      response-property-became-required

    • the response property code became required for the status 401

      response-property-became-required

    • the response property data became required for the status 200

      response-property-became-required

    • the response property data/pageSize became required for the status 200

      response-property-became-required

    • the response property data/totalNum became required for the status 200

      response-property-became-required

    • the response property data/workerDatas became required for the status 200

      response-property-became-required

    • the response property data/workerDatas/items/dayHashRate became required for the status 200

      response-property-became-required

    • the response property data/workerDatas/items/hashRate became required for the status 200

      response-property-became-required

    • the response property data/workerDatas/items/lastShareTime became required for the status 200

      response-property-became-required

    • the response property data/workerDatas/items/rejectRate became required for the status 200

      response-property-became-required

    • the response property data/workerDatas/items/status became required for the status 200

      response-property-became-required

    • the response property data/workerDatas/items/workerId became required for the status 200

      response-property-became-required

    • the response property data/workerDatas/items/workerName became required for the status 200

      response-property-became-required

    • the response property msg became required for the status 200

      response-property-became-required

    • the response property msg became required for the status 400

      response-property-became-required

    • the response property msg became required for the status 401

      response-property-became-required