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_accountwritableextra metas account account read or updated by GLAM Policies (Transfer Hook)'s initialize extra metas account instruction.
mintread-onlyToken mint account used or validated by this instruction.
authoritysigner, writableauthority account read or updated by GLAM Policies (Transfer Hook)'s initialize extra metas account instruction.
payersigner, writableFee payer funding rent or account allocation for this instruction.
system_programread-onlySolana System Program.

Arguments

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