mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
872 B
872 B
Home > bitburner > Hacknet > getHashUpgrades
Hacknet.getHashUpgrades() method
Get the list of hash upgrades
Signature:
getHashUpgrades(): HacknetServerHashUpgrade[];
Returns:
An array containing the available upgrades
Remarks
RAM cost: 0.5 GB
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
Returns the list of all available hash upgrades that can be used in the spendHashes function.
Example
const upgrades = ns.hacknet.getHashUpgrades(); // ["Sell for Money","Sell for Corporation Funds",...]