MDK Logo
UI Kitreact-adapterHooks

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 providerNo