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

# AllowMint

> Erlaubt einen SPL-Token-Mint auf der Instanz und erstellt das Escrow-ATA für diesen Mint

Erlaubt einen SPL-Token-Mint auf der Instanz und erstellt den associated
token account des Escrows für diesen Mint. Einzahlungen für diesen Mint
sind nach diesem Aufruf möglich.

## Konten

| Konten                          | Schreibbar | Signer | Beschreibung                                                                   |
| -------------------------------- | -------- | ------ | ----------------------------------------------------------------------------- |
| `payer`                          | ✓        | ✓      | Gebührenzahler                                                                     |
| `admin`                          |          | ✓      | Instanz-Administrator                                                                |
| `instance`                       |          |        | Instanz-PDA                                                                  |
| `mint`                           |          |        | Zu erlaubender SPL-Token-Mint                                                       |
| `allowed_mint`                   | ✓        |        | AllowedMint-PDA (durch diese Anweisung erstellt)                                 |
| `instance_ata`                   | ✓        |        | Associated token account des Escrows für diesen Mint (durch diese Anweisung erstellt) |
| `system_program`                 |          |        | System Program                                                                |
| `token_program`                  |          |        | SPL Token Program                                                             |
| `associated_token_program`       |          |        | Associated Token Program                                                      |
| `event_authority`                |          |        | Event-Authority-PDA                                                           |
| `private_channel_escrow_program` |          |        | Escrow-Programm                                                                |

## Parameter

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

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

## Wichtige Hinweise

- Verwenden Sie `getAllowMintInstructionAsync`; es leitet `bump`, `allowed_mint`
  und `instance_ata` automatisch ab, wenn sie nicht angegeben werden. Übergeben Sie einen eigenen `bump` nur,
  wenn Sie ihn bereits über
  `Pubkey::find_program_address(&[b"allowed_mint", instance_pda, mint], &PROGRAM_ID)` berechnet haben
- Erstellt außerdem `instance_ata`, den ATA des Escrows für diesen Mint
- Mints mit einer Transfer-Hook-Erweiterung sind explizit blockiert: Der Versuch,
  einen solchen Mint zu erlauben, löst `TransferHookNotAllowed` aus
- Sendet ein Ereignis über `EmitEvent`-CPI
