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

> Örnekte bir SPL token mint'ine izin verir ve o mint için escrow ATA'sını oluşturur

Örnekte bir SPL token mint'ine izin verir ve o mint için escrow'un associated
token account'unu oluşturur. Bu çağrının ardından söz konusu mint için
yatırma işlemleri mümkün hale gelir.

## Hesaplar

| Hesap                          | Yazılabilir | İmzalayan | Açıklama                                                                   |
| -------------------------------- | -------- | ------ | ----------------------------------------------------------------------------- |
| `payer`                          | ✓        | ✓      | Ücret ödeyici                                                                     |
| `admin`                          |          | ✓      | Örnek yöneticisi                                                                |
| `instance`                       |          |        | Örnek PDA                                                                  |
| `mint`                           |          |        | İzin verilecek SPL token mint'i                                                       |
| `allowed_mint`                   | ✓        |        | AllowedMint PDA (bu talimat tarafından oluşturulur)                                 |
| `instance_ata`                   | ✓        |        | Bu mint için escrow'un associated token account'u (bu talimat tarafından oluşturulur) |
| `system_program`                 |          |        | System Program                                                                |
| `token_program`                  |          |        | SPL Token Program                                                             |
| `associated_token_program`       |          |        | Associated Token Program                                                      |
| `event_authority`                |          |        | Etkinlik yetkisi PDA                                                           |
| `private_channel_escrow_program` |          |        | Escrow Programı                                                                |

## Parametreler

| Parametre | Tür | Açıklama                                                                                   |
| --------- | ---- | --------------------------------------------------------------------------------------------- |
| `bump`    | `u8` | `allowed_mint` PDA için bump seed. İsteğe bağlı: `Async` istemcisi atlanırsa otomatik türetir |

> IDL, otomatik olarak ayarlanan bir `discriminator: u8` argümanı (değer `1`) içerir
> ve bu değer üretilen istemci tarafından otomatik ayarlanır; elle iletilmemelidir.

## Önemli Notlar

- `getAllowMintInstructionAsync` kullanın; sağlanmadığında `bump`, `allowed_mint`
  ve `instance_ata` değerlerini otomatik olarak türetir. Kendi `bump` değerinizi yalnızca
  `Pubkey::find_program_address(&[b"allowed_mint", instance_pda, mint], &PROGRAM_ID)`
  aracılığıyla önceden hesapladıysanız iletin
- Bu mint için escrow'un ATA'sı olan `instance_ata`'yı da oluşturur
- Transfer hook uzantısına sahip mint'ler açıkça engellenir: böyle bir mint'e izin verme
  girişimi `TransferHookNotAllowed` hatasını fırlatır
- `EmitEvent` CPI aracılığıyla bir olay yayar
