GLAMIDL Reference

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

AccountRoleDescription
extra_metas_accountwritableToken-2022 transfer-hook extra-account-metas account associated with the mint.
mintread-onlyToken mint account used by the instruction.
authoritysigner, writableInstruction-specific account supplied by the caller or SDK.
payersigner, writableInstruction-specific account supplied by the caller or SDK.
system_programread-onlyStandard Solana program account required by the instruction.

Arguments

ArgumentTypeNotes
metasvec<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.