MDK Logo
UI Kitreact-adapterHooks

useStaticMinerIpAssignment

Derives the static IP address a miner should receive based on its physical position (container number + socket coordinates).

Derives the static IP address a miner should receive based on its physical position (container number + socket coordinates).

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

Signature

(selectedEditSocket: Partial<SelectedEditSocket>) => { minerIp: string; setMinerIp: React.Dispatch<React.SetStateAction<string>>; isStaticIpAssignment: boolean; }
Package@tetherto/mdk-react-adapter
Requires providerNo