useMinerDuplicateValidation
Async validation hook that flags duplicate miners against the device inventory (MAC / serial / IP / human-facing code).
Async validation hook that flags duplicate miners against the device inventory (MAC / serial / IP / human-facing code).
import { useMinerDuplicateValidation } from "@tetherto/mdk-react-adapter";Signature
() => { duplicateError: boolean; isDuplicateCheckLoading: boolean; checkDuplicate: (selectedEditSocket: { miner?: { id?: string | undefined; } | undefined; } | null, { macAddress, serialNumber, addre…| Package | @tetherto/mdk-react-adapter |
| Requires provider | No |
useMinerDevices
Fetches miner devices from `GET /auth/list-things` (tag `t-miner`) in the nested shape the devkit Miner Explorer expects. Prefer this over @link useMiners wh…
useMiners
Fetches miners with their assigned `poolConfig` from `GET /auth/miners`. Unwraps the paginated response envelope and returns the page rows for the Miner Expl…