2022-10-21 17:16:00 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home ](./index.md ) > [bitburner ](./bitburner.md ) > [Singularity ](./bitburner.singularity.md ) > [donateToFaction ](./bitburner.singularity.donatetofaction.md )
## Singularity.donateToFaction() method
Donate to a faction.
2023-02-11 19:18:50 +01:00
**Signature:**
2022-10-21 17:16:00 +02:00
```typescript
donateToFaction(faction: string, amount: number): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| faction | string | Name of faction to donate to. |
| amount | number | Amount of money to donate. |
2023-02-11 19:18:50 +01:00
**Returns:**
2022-10-21 17:16:00 +02:00
boolean
True if the money was donated, and false otherwise.
## Remarks
RAM cost: 5 GB \* 16/4/1
Attempts to donate money to the specified faction in exchange for reputation. Returns true if you successfully donate the money, and false otherwise.
2024-10-08 08:14:09 +02:00
You cannot donate to your gang's faction.
The specified faction must offer at least 1 type of work. You can use [getFactionWorkTypes ](./bitburner.singularity.getfactionworktypes.md ) to get the list of work types of a faction.