mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
65 lines
1.0 KiB
Markdown
65 lines
1.0 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Hacknet](./bitburner.hacknet.md) > [getNodeStats](./bitburner.hacknet.getnodestats.md)
|
|
|
|
## Hacknet.getNodeStats() method
|
|
|
|
Get the stats of a hacknet node.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getNodeStats(index: number): NodeStats;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
<table><thead><tr><th>
|
|
|
|
Parameter
|
|
|
|
|
|
</th><th>
|
|
|
|
Type
|
|
|
|
|
|
</th><th>
|
|
|
|
Description
|
|
|
|
|
|
</th></tr></thead>
|
|
<tbody><tr><td>
|
|
|
|
index
|
|
|
|
|
|
</td><td>
|
|
|
|
number
|
|
|
|
|
|
</td><td>
|
|
|
|
Index/Identifier of Hacknet Node
|
|
|
|
|
|
</td></tr>
|
|
</tbody></table>
|
|
|
|
**Returns:**
|
|
|
|
[NodeStats](./bitburner.nodestats.md)
|
|
|
|
Object containing a variety of stats about the specified Hacknet Node.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0.5 GB
|
|
|
|
Returns an object containing a variety of stats about the specified Hacknet Node.
|
|
|
|
Note that for Hacknet Nodes, production refers to the amount of money the node generates. For Hacknet Servers (the upgraded version of Hacknet Nodes), production refers to the amount of hashes the node generates.
|
|
|