> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# AddOperator

> Richtet einen neuen Operator ein, indem dessen Operator-PDA erstellt wird

Richtet einen neuen Operator ein, indem dessen `Operator`-PDA erstellt wird. Nach diesem Aufruf kann das
`operator`-Wallet `ReleaseFunds` und `ResetSmtRoot` aufrufen.

## Konten

| Konten                          | Beschreibbar | Signer | Beschreibung                                                         |
| -------------------------------- | -------- | ------ | ------------------------------------------------------------------- |
| `payer`                          | ✓        | ✓      | Gebührenzahler                                                           |
| `admin`                          |          | ✓      | Instanz-Administrator                                                      |
| `instance`                       |          |        | Instanz-PDA                                                        |
| `operator`                       |          |        | Bereitzustellendes Operator-Wallet                                        |
| `operator_pda`                   | ✓        |        | Operator-PDA – automatisch abgeleitet aus `["operator", instance, operator]` |
| `system_program`                 |          |        | System Program                                                      |
| `event_authority`                |          |        | Event-Authority-PDA                                                 |
| `private_channel_escrow_program` |          |        | Escrow-Programm                                                      |

## Parameter

| Parameter | Typ | Beschreibung                                                                               |
| --------- | ---- | ----------------------------------------------------------------------------------------- |
| `bump`    | `u8` | bump seed für die `operator_pda`. Optional: Der `Async`-Client leitet ihn automatisch ab, wenn er nicht angegeben wird |

> Die IDL enthält ein `discriminator: u8`-Argument (Wert `3`), das automatisch
> vom generierten Client gesetzt wird und nicht manuell übergeben werden sollte.

## Wichtige Hinweise

- Verwende `getAddOperatorInstructionAsync`; es leitet `bump` und
  `operator_pda` automatisch ab, wenn diese nicht angegeben werden. Eine synchrone
  Variante `getAddOperatorInstruction` ist ebenfalls verfügbar, falls `bump`
  bereits selbst berechnet wurde
- Nach diesem Aufruf kann das `operator`-Wallet `ReleaseFunds` und
  `ResetSmtRoot` aufrufen
- Gibt ein Ereignis über `EmitEvent`-CPI aus
