API Docs
Subaccount Management
Subaccounts Hashrate History

Subaccounts Hashrate History

Retrieves all subaccounts hashrate history.

Example

query getAllSubaccountsHashrateHistory {
  getAllSubaccountsHashrateHistory(first: 10, mpn: BTC, inputInterval: _15_MINUTE) {
    edges {
      node {
        hashrateHistory
        username
      }
    }
  }
}

Response

{
  "data": {
    "getAllSubaccountsHashrateHistory": {
      "edges": [
        {
          "node": {
            "hashrateHistory": [
              {
                "time": "",
                "hashrate": ,
                "data_points":
              }
            ],
            "username": ""
          }
        }
      ]
    }
  }
}

Arguments

  • mpn (MiningProfileName!)
enum MiningProfileName {
  ARRR
  BTC
  DASH
  DCR
  KMD
  LBC
  SC
  SCP
  ZEC
  ZEN
  EQUI
  TBTC
  ETH
  TETH
}
  • inputInterval (HashrateIntervals)
enum HashrateIntervals {
  _15_MINUTE
  _1_HOUR
  _6_HOUR
  _1_DAY
}
  • 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.

type AggHashrateHistoriesConnection {
  nodes: [AggHashrateHistory!]!
  edges: [AggHashrateHistoriesEdge!]!
  pageInfo: PageInfo!
  totalCount: Int!
}
Fields
  • nodes ([AggHashrateHistory!]!)

A list of AggHashrateHistory objects.

type AggHashrateHistory {
  username: String!
  hashrateHistory: JSON!
}
Fields
  • edges ([AggHashrateHistoriesEdge!]!)

A list of edges which contains the AggHashrateHistory and cursor to aid in pagination.

type AggHashrateHistoriesEdge {
  cursor: Cursor
  node: AggHashrateHistory!
}
Fields
  • cursor (Cursor) A cursor for use in pagination.

  • node (AggHashrateHistory!) The AggHashrateHistory 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 AggHashrateHistory you could get from the connection.