Luxor Documentation Hub Logo
Mining Pool/API Documentation/V2/Reporting

Get workers

Returns a list of all workers associated to a Workspace.

GET
/v2/pool/workers/{currency_type}

Authorization

authorization<token>

Use your API key here.

In: header

Path Parameters

currency_typeRequiredstring

Which currency to query, e.g. BTC or ZEN.

Value in: "BTC" | "LTC_DOGE" | "SC" | "ZEC" | "ZEN"

Query Parameters

subaccount_namesAny properties in Any properties in string,array<string>,array<string>
site_idAny properties in string,string
statusstring

The status of the worker to filter by.

Value in: "UNSPECIFIED" | "ACTIVE" | "INACTIVE"
page_numberinteger
Default: 1Minimum: 1
page_sizeinteger
Default: 10Minimum: 1
curl -X GET "https://app.luxor.tech/api/v2/pool/workers/BTC?subaccount_names=my_subaccount%2Canother_subaccount&site_id=b0a5fad8-0e09-4f10-ac20-ccd80fb2d138&status=ACTIVE&page_number=1&page_size=10" \
  -H "authorization: <token>"

Default Response

{
  "currency_type": "BTC",
  "subaccounts": [
    {
      "id": 0,
      "name": "my_subaccount",
      "site_id": "b0a5fad8-0e09-4f10-ac20-ccd80fb2d138",
      "created_at": "2019-08-24T14:15:22Z",
      "url": "string"
    }
  ],
  "total_inactive": 10,
  "total_active": 10,
  "workers": [
    {
      "currency_type": "BTC",
      "id": "string",
      "subaccount_name": "my_subaccount",
      "name": "worker_1",
      "firmware": "1.0.0",
      "hashrate": 0.00066154,
      "efficiency": 0.9960606098175049,
      "stale_shares": 0.00066154,
      "rejected_shares": 0.00066154,
      "last_share_time": "2019-08-24T14:15:22Z",
      "status": "ACTIVE"
    }
  ],
  "pagination": {
    "page_number": 1,
    "page_size": 1,
    "item_count": 0,
    "previous_page_url": null,
    "next_page_url": null
  }
}