MDK Logo
UI Kitreact-adapterHooks

usePoolStats

Aggregates per-pool worker counts and hashrate from `GET /auth/ext-data?type=minerpool&query="key":"stats"`. Returns the `total`, `online`, and `mismatch` tr…

Aggregates per-pool worker counts and hashrate from `GET /auth/ext-data?type=minerpool&query={"key":"stats"}`. Returns the `total`, `online`, and `mismatch` triplets and the summed `hashratePhs` shaped for `<HeaderMinersBox poolTotal/poolO…

import { usePoolStats } from "@tetherto/mdk-react-adapter";

Signature

(options: UsePoolStatsOptions = {}) => PoolStats
Package@tetherto/mdk-react-adapter
Requires providerNo