useHashBalance
Derives hash-balance metrics and chart datasets from finance log entries for the active date range, currency, and timeframe type. Used by hash balance panels.
Derives hash-balance metrics and chart datasets from finance log entries for the active date range, currency, and timeframe type. Used by hash balance panels.
import { useHashBalance } from "@tetherto/mdk-react-devkit";Signature
({ data, log, currency, dateRange, timeframeType, }: UseHashBalanceInput) => { siteHashRevenueChartData: BarChartDataResult; networkHashpriceChartData: BarChartDataResult; combinedCostChartData: BarChartDataResult; isEmpty: boolean; periodT… /* see source */| Package | @tetherto/mdk-react-devkit |
useGetAvailableDevices
Pure projector turning a flat device list (or the `/auth/list-things` nested shape) into the two type-buckets the device-explorer toolbar needs.
useHashrate
Base hook for a single Hashrate tab (single-site mode). Normalizes a grouped-hashrate query result to the ` log, isLoading, error ` shape consumed by `Hashra…