> ## 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

> Надає нового оператора шляхом створення його Operator PDA

Надає нового оператора шляхом створення його `Operator` PDA. Після цього виклику
гаманець `operator` може викликати `ReleaseFunds` і `ResetSmtRoot`.

## Акаунти

| Акаунт                          | Записуваний | Підписант | Опис                                                         |
| -------------------------------- | -------- | ------ | ------------------------------------------------------------------- |
| `payer`                          | ✓        | ✓      | Платник комісії                                                           |
| `admin`                          |          | ✓      | Адміністратор екземпляра                                                      |
| `instance`                       |          |        | Instance PDA                                                        |
| `operator`                       |          |        | Гаманець оператора для надання                                        |
| `operator_pda`                   | ✓        |        | Operator PDA — автоматично похідний від `["operator", instance, operator]` |
| `system_program`                 |          |        | System Program                                                      |
| `event_authority`                |          |        | PDA авторитету подій                                                 |
| `private_channel_escrow_program` |          |        | Програма ескроу                                                      |

## Параметри

| Параметр | Тип | Опис                                                                               |
| --------- | ---- | ----------------------------------------------------------------------------------------- |
| `bump`    | `u8` | bump seed для `operator_pda`. Необов'язковий: клієнт `Async` автоматично похідний, якщо не вказано |

> IDL містить аргумент `discriminator: u8` (значення `3`), який автоматично встановлюється
> згенерованим клієнтом і не повинен передаватися вручну.

## Важливі примітки

- Використовуйте `getAddOperatorInstructionAsync`; він автоматично визначає `bump` і
  `operator_pda`, якщо вони не надані. Синхронний варіант
  `getAddOperatorInstruction` також існує, якщо ви вже самостійно обчислили `bump`
- Після цього виклику гаманець `operator` може викликати `ReleaseFunds` і
  `ResetSmtRoot`
- Генерує подію через `EmitEvent` CPI
