GLAM Policies (Transfer Hook)Production
initialize_extra_metas_account
Initializes transfer-hook extra-account-metas for a Token-2022 mint.
Required conditions
- Creation-style flows require the target account or PDA to be uninitialized or intentionally updatable, the fee payer to be writable, and the System Program to be present when rent or allocation is needed.
Accounts
| Account | Role | Description |
|---|---|---|
| extra_metas_account | writable | extra metas account account read or updated by GLAM Policies (Transfer Hook)'s initialize extra metas account instruction. |
| mint | read-only | Token mint account used or validated by this instruction. |
| authority | signer, writable | authority account read or updated by GLAM Policies (Transfer Hook)'s initialize extra metas account instruction. |
| payer | signer, writable | Fee payer funding rent or account allocation for this instruction. |
| system_program | read-only | Solana System Program. |
Arguments
| Argument | Type | Notes |
|---|---|---|
| metas | vec<AnchorExtraAccountMeta> |
Policy & permissions
- Signer must be the Token-2022 mint authority. The TLV extra metas account for the transfer hook is initialized.
- GLAM owner authority is not used.