API Docs
Get Network Hashrate

Get Network Hashrate

Returns the network hashrate for a specified interval

Response

{
    "data": {
        "getNetworkHashrate": {
            "totalCount": 103,
            "pageInfo": {
                "endCursor": "WyJuYXR1cmFsIiwxXQ==",
                "hasNextPage": true,
                "hasPreviousPage": false,
                "startCursor": "WyJuYXR1cmFsIiwxXQ=="
            },
            "edges": [
                {
                    "cursor": "WyJuYXR1cmFsIiwxXQ==",
                    "node": {
                        "timestamp": "2024-03-21T14:10:00+00:00",
                        "networkHashrate": 495.18758503980365,
                        "sma30Days": 598.230368240201,
                        "sma3Days": 629.7900669586368,
                        "sma7Days": 605.5336304590012
                    }
                }
            ],
            "nodes": [
                {
                    "networkHashrate": 495.18758503980365,
                    "sma30Days": 598.230368240201,
                    "sma3Days": 629.7900669586368,
                    "sma7Days": 605.5336304590012,
                    "timestamp": "2024-03-21T14:10:00+00:00"
                }
            ]
        }
    }
}

Arguments

  • inputInterval (ChartsInterval)
enum ChartsInterval {
  _1_DAY
  _7_DAY
  _1_MONTH
  _3_MONTHS
  _1_YEAR
  ALL
}

Type

NetworkHashratesConnection

A connection to a list of NetworkHashrate values.

type NetworkHashratesConnection {
  nodes: [NetworkHashrate!]!
  edges: [NetworkHashratesEdge!]!
  pageInfo: PageInfo!
  totalCount: Int!
}
Fields
  • nodes ([NetworkHashrate!]!)

A list of NetworkHashrate objects.

type NetworkHashrate {
  timestamp: Datetime
  networkHashrate: Float
  sma3Days: Float
  sma7Days: Float
  sma30Days: Float
}
  • edges ([NetworkHashratesEdge!]!)

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

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

  • node (NetworkHashrate!) A list of NetworkHashrate objects.

type NetworkHashrate {
  timestamp: Datetime
  networkHashrate: Float
  sma3Days: Float
  sma7Days: Float
  sma30Days: Float
}
  • pageInfo

Information to aid in pagination.

type PageInfo {
  hasNextPage: Boolean!
  hasPreviousPage: Boolean!
  startCursor: Cursor
  endCursor: Cursor
}
  • totalCount (Int!) The count of all NetworkHashrate you could get from the connection.