bitburner-src/markdown/bitburner.singularity.purchaseprogram.md
Olivier Gagnon 2b79871c02 doc
2021-11-03 00:27:21 -04:00

42 lines
1012 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Singularity](./bitburner.singularity.md) &gt; [purchaseProgram](./bitburner.singularity.purchaseprogram.md)
## Singularity.purchaseProgram() method
Purchase a program from the dark web.
<b>Signature:</b>
```typescript
purchaseProgram(programName: string): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| programName | string | Name of program to purchase. |
<b>Returns:</b>
boolean
True if the specified program is purchased, and false otherwise.
## Remarks
RAM cost: 2 GB
Singularity - Level 1
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
```ts
purchaseProgram("brutessh.exe");
```