Skip to main content

Get Worker Hashrate History

Retrieves hashrate history for a worker.

  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 getWorkerHashrateHistory($username: String!, $workerName: String!, $mpn: MiningProfileName!, $inputBucket: HashrateIntervals!, $inputDuration: HashrateIntervals!, $first: Int) {
getWorkerHashrateHistory(
username: $username,
workerName: $workerName,
mpn: $mpn,
inputBucket: $inputBucket,
inputDuration: $inputDuration,
first: $first
) {
edges {
node {
time
hashrate
}
}
}
}"}'

Example

query getWorkerHashrateHistory {
getWorkerHashrateHistory(
inputBucket: _15_MINUTE
inputDuration: _15_MINUTE
mpn: BTC
username: ""
workerName: ""
) {
edges {
node {
hashrate
}
}
}
}

Response

{
"data": {
"getWorkerHashrateHistory": {
"edges": [
{
"node": {
"time": "",
"hashrate": ""
}
}
]
}
}
}

Arguments

username (String!)

workerName (String!)

mpn (MiningProfileName!)

inputDuration (HashrateIntervals!)

inputBucket (HashrateIntervals!)

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

ReturnWorkerHashrateHistoriesConnection

A connection to a list of ReturnWorkerHashrateHistory values.