useHashrate
Base hook for a single Hashrate tab (single-site mode). Normalizes a grouped-hashrate query result to the ` log, isLoading, error ` shape consumed by `Hashra…
Base hook for a single Hashrate tab (single-site mode). Normalizes a grouped-hashrate query result to the `{ log, isLoading, error }` shape consumed by `<HashrateSiteView>`, `<HashrateMinerTypeView>`, and `<HashrateMiningUnitView>`. Call once per tab the consumer needs to render - each tab fetches independently because they use different `groupBy` axes and (typically) different date ranges.
import { useHashrate } from "@tetherto/mdk-react-devkit";Signature
({ query }?: UseHashrateOptions) => UseHashrateResult| Package | @tetherto/mdk-react-devkit |
useHashBalance
Derives hash-balance metrics and chart datasets from finance log entries for the active date range, currency, and timeframe type. Used by hash balance panels.
useHashrateChartData
Multi-series hashrate chart data — Mining OS (miner tail-log) plus an `Aggr Pool` rollup and one line per individual pool (drawn from the paginated `type=min…