GLAM Policies (Token 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 | Token-2022 transfer-hook extra-account-metas account associated with the mint. |
| mint | read-only | Token mint account used by the instruction. |
| authority | signer, writable | Instruction-specific account supplied by the caller or SDK. |
| payer | signer, writable | Instruction-specific account supplied by the caller or SDK. |
| system_program | read-only | Standard Solana program account required by the instruction. |
Arguments
| Argument | Type | Notes |
|---|---|---|
| metas | vec<AnchorExtraAccountMeta> | Extra accounts the Token-2022 transfer hook must receive during transfer validation. Fields: discriminator: u8; address_config: [u8; 32]; is_signer: bool; is_writable: bool |
Policy & permissions
- Only the owner is expected. Delegates do not receive this capability by being added; it must be granted explicitly if supported.