const KindHomeGPU, KindVehicle, KindCPU
Node kinds.
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package idlewatt is an on-chain registry and dashboard for idle compute nodes: home GPU boxes today, and someday park...
Package idlewatt is an on-chain registry and dashboard for idle compute nodes: home GPU boxes today, and someday parked vehicles, that want to rent spare capacity on decentralized compute networks such as Akash.
IMPORTANT: every node, heartbeat and job in this realm is self-reported or simulated by its operator. There is no Tesla or Akash integration and no hardware attestation; earnings are simulated USD figures, not payments.
Node kinds.
Power sources.
Availability modes.
AdminRemoveNode removes a spam or abusive node.
DistributeBonus splits the fairness pool equally across every node that is online and available right now, regardless of size or earnings, like AtomOne's Nakamoto Bonus splits its pool equally across validators. Anyone may call it, at most once per hour. Returns how many nodes shared.
Heartbeat records a signed liveness ping for a node, with an optional short status note (e.g. "SoC 82%, 41C"). Only the operator.
NodeCount returns the number of registered nodes.
NodeSummary returns a one-line text summary of a node, or "" if unknown.
RecordJob records a completed (simulated) job on a node, e.g. an AI inference lease. Earnings are computed by the realm from the node's rate and the duration, so operators cannot claim arbitrary amounts. The node must be available and online. 14% of the gross goes to the fairness pool.
1func RegisterNode(cur realm, name, kind, hardware, region, power string, rateCents int64) intRegisterNode adds a node owned by the caller and returns its ID. kind: home-gpu | vehicle | cpu. power: grid | solar | powershare-backup. rateCents: asking price in US cents per hour (e.g. 45 = $0.45/h).
RemoveNode deletes the caller's node. Its job history stays on the record.
Render serves the gnoweb dashboard.
SetAvailability switches a node between available (parked & plugged in), driving (vehicles only) and paused. Only the operator.
SetOnlineWindowMinutes sets how long after its last heartbeat a node still counts as online (5 minutes to 7 days).
SetPaused stops or resumes new registrations.
SetRate changes only the hourly asking rate (US cents). Only the operator.
Stats returns nodes, online nodes, simulated gross earnings (cents) and the undistributed fairness pool (cents).
TransferAdmin hands the admin role to another address.
UpdateNode changes a node's descriptive fields and rate. Only the operator.
Job is one simulated (self-reported) lease / job completion.
1type Node struct {
2 ID int
3 Operator address
4 Name string
5 Kind string
6 Hardware string
7 Region string
8 Power string
9 RateCents int64 // asking price, USD cents per hour
10 Mode string
11
12 RegisteredAt time.Time
13 LastHeartbeat time.Time // zero if never
14 SessionStart time.Time // start of the current unbroken heartbeat run
15 HeartbeatCount int
16 LastNote string
17
18 JobCount int
19 JobMinutes int64
20 EarnedCents int64 // operator share of simulated job earnings
21 BonusCents int64 // share of the small-node fairness pool
22}Node is one idle-compute node registered by an operator. All figures are self-reported by the operator; nothing here is verified by Akash, Tesla or any hardware attestation (yet).
TotalCents is what the leaderboard ranks on.