Skip to main content

Get Worker Details

Returns the details of all workers in a subaccount

curl --location --request POST 'https://api.beta.luxor.tech/graphql' \
--header 'Content-Type: application/json' \
--header 'x-lux-api-key: YOUR_API_KEY' \
--data-raw '{"query":"query getWorkerDetails {\n getWorkerDetails(duration: { days: 10 }, mpn: ARRR, uname: \"\", first: 10) {\n edges {\n node {\n minerId\n workerName\n miningProfileName\n updatedAt\n status\n hashrate\n validShares\n staleShares\n invalidShares\n lowDiffShares\n badShares\n duplicateShares\n revenue\n efficiency\n }\n }\n }\n}"}'

Example

query getWorkerDetails {
getWorkerDetails(duration: { days: 10 }, mpn: ARRR, uname: "", first: 10) {
edges {
node {
minerId
workerName
miningProfileName
updatedAt
status
hashrate
validShares
staleShares
invalidShares
lowDiffShares
badShares
duplicateShares
revenue
efficiency
}
}
}
}

Response

{
"data": {
"getWorkerDetails": {
"edges": [
{
"node": {
"minerId": "",
"workerName": "",
"miningProfileName": "",
"updatedAt": "",
"status": "",
"hashrate": "",
"validShares": "",
"staleShares": "",
"invalidShares": "",
"lowDiffShares": "",
"badShares": "",
"duplicateShares": "",
"revenue": "",
"efficiency": ""
}
}
]
}
}
}

Arguments

mpn (MiningProfileName!)

duration (IntervalInput!)

uname (String!)

first (Int)

Only read the first n values of the set.

last (Int)

Only read the last n values of the set.

offset (Int)

Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last.

before (Cursor)

Read all values in the set before (above) this cursor.

after (Cursor)

Read all values in the set after (below) this cursor.

Type

MinerDetailMaterializedsConnection

A connection to a list of MinerDetailMaterialized values.