Skip to main content

Subaccounts Hashrate History

Retrieves all subaccounts hashrate history.

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":"getHashrateHistory($inputUsername: String!, $mpn: MiningProfileName!,$inputInterval: HashrateIntervals!, $first: Int) {
getHashrateHistory(
inputUsername: $inputUsername,
mpn: $mpn,
inputInterval: $inputInterval,
first: $first) {
edges {
node {
time
hashrate
}
}
}
}"}'

Example

query getHashrateHistory {
getHashrateHistory(inputInterval: _15_MINUTE, mpn: BTC) {
nodes {
hashrateHistory
username
}
}
}

Response

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

Arguments

mpn (MiningProfileName)

inputInterval (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

AggHashrateHistoriesConnection

A connection to a list of AggHashrateHistory values.