Skip to main content

Subaccount Mining Summary

Represents the result given by getMiningSummary query

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":"query getMiningSummary($mpn: MiningProfileName!, $userName: String!, $inputDuration: HashrateIntervals!) {
getMiningSummary(mpn: $mpn, userName: $userName, inputDuration: $inputDuration) {
hashrate
validShares
invalidShares
staleShares
badShares
lowDiffShares
revenue
}
}
"}'

Example

query getMiningSummary {
getMiningSummary(inputDuration: _15_MINUTE, mpn: BTC, userName: "") {
username
validShares
invalidShares
staleShares
lowDiffShares
badShares
duplicateShares
revenue
hashrate
}
}

Response

{
"data": {
"getMiningSummary": {
"username": "",
"validShares": "0",
"invalidShares": "0",
"staleShares": "0",
"lowDiffShares": "0",
"badShares": "0",
"duplicateShares": "0",
"revenue": 0,
"hashrate": 0
}
}
}

Fields

username (String)

validShares (BigInt)

invalidShares (BigInt)

staleShares (BigInt)

lowDiffShares (BigInt)

badShares (BigInt)

duplicateShares (BigInt)

revenue (Float)

hashrate (Float)