API Docs
Worker Management
Get Worker Hashrate History

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 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.

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!) The ReturnWorkerHashrateHistory 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.