bitburner-src/markdown/bitburner.singularity.purchaseprogram.md
Olivier Gagnon f4ac7344c4 doc
2022-01-08 13:25:06 -05:00

1.0 KiB

Home > bitburner > Singularity > purchaseProgram

Singularity.purchaseProgram() method

SF4.1 - Purchase a program from the dark web.

Signature:

purchaseProgram(programName: string): boolean;

Parameters

Parameter Type Description
programName string Name of program to purchase.

Returns:

boolean

True if the specified program is purchased, and false otherwise.

Remarks

RAM cost: 2 GB

This function allows you to automatically purchase programs. You MUST have a TOR router in order to use this function. The cost of purchasing programs using this function is the same as if you were purchasing them through the Dark Web using the Terminal buy command.

Example 1

// NS1
purchaseProgram("brutessh.exe");

Example 2

// NS2
ns.purchaseProgram("brutessh.exe");