useSiteMinerCounts
Counts active miners by status for the header `HeaderMinersBox`. Hits `/auth/list-things?status=1` with a tight projection (id, type, last.status only) so th…
Counts active miners by status for the header `<HeaderMinersBox />`. Hits `/auth/list-things?status=1` with a tight projection (id, type, last.status only) so the response stays small even on big sites.
import { useSiteMinerCounts } from "@tetherto/mdk-react-adapter";Signature
(options: UseSiteMinerCountsOptions = {}) => UseQueryResult<SiteMinerCounts, Error>| Package | @tetherto/mdk-react-adapter |
| Requires provider | No |
useSiteHashrate
Projects the freshest hashrate sample from the dashboard's tail-log query. Shares the TanStack queryKey with @link useHashrateChartData, so subscribing here …
useSiteMinerStats
Live miner-status breakdown for the header `HeaderMinersBox` strip. Reads the realtime tail-log (`key=stat-rtd, type=miner, tag=t-miner`) and projects four a…