Skip to main content

Get Worker Details

Returns the details of all workers in a subaccount

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

Example

query getWorkerDetails {
getWorkerDetails(duration: { days: 10 }, mpn: BTC, uname: "") {
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.