Get Worker Hashrate History
Retrieves hashrate history for a worker.
Example
query getWorkerHashrateHistory {
getWorkerHashrateHistory(
inputBucket: _1_DAY
inputDuration: _1_DAY
mpn: BTC
username: "your_username"
workerName: "worker_name"
first: 10
) {
edges {
node {
time
hashrate
}
}
}
}
Response
{
"data": {
"getWorkerHashrateHistory": {
"edges": [
{
"node": {
"time": "",
"hashrate": ""
}
}
]
}
}
}
Arguments
enum MiningProfileName {
ARRR
BTC
DASH
DCR
KMD
LBC
SC
SCP
ZEC
ZEN
EQUI
TBTC
ETH
TETH
}
inputDuration
(HashrateIntervals!)
enum HashrateIntervals {
_15_MINUTE
_1_HOUR
_6_HOUR
_1_DAY
}
-
inputBucket
(HashrateIntervals!) -
first
(Int
) Only read the firstn
values of the set. -
last
(Int
) Only read the lastn
values of the set. -
offset
(Int
) Skip the firstn
values from ourafter
cursor, an alternative to cursor based pagination. May not be used withlast
. -
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.
type ReturnWorkerHashrateHistoriesConnection {
nodes: [ReturnWorkerHashrateHistory!]!
edges: [ReturnWorkerHashrateHistoriesEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}
Fields
nodes
([ReturnWorkerHashrateHistory!]!)
A list of ReturnWorkerHashrateHistory
objects.
type ReturnWorkerHashrateHistory {
time: Datetime!
hashrate: BigFloat!
dataPoints: BigInt!
}
edges
([ReturnWorkerHashrateHistoriesEdge!]!)
A list of edges which contains the ReturnWorkerHashrateHistory
and cursor to aid in pagination.
type ReturnWorkerHashrateHistoriesEdge {
cursor: Cursor
node: ReturnWorkerHashrateHistory!
}
Fields
-
cursor
(Cursor
) A cursor for use in pagination. -
node
(ReturnWorkerHashrateHistory!
) TheReturnWorkerHashrateHistory
at the end of the edge.
pageInfo
Information to aid in pagination.
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: Cursor
endCursor: Cursor
}
totalCount
(Int
)
The count of all ReturnWorkerHashrateHistory
you could get from the connection.