GLAMIDL Reference

close_extra_metas_account

Closes a Token-2022 extra-account-metas account for GLAM Policies.

Required conditions

  • The target account must be writable and controlled by the program or authority expected by the instruction.
  • The rent refund destination or signer account must be writable because closing returns lamports to that account.
  • Any protocol-specific empty-state requirement, such as zero balance, zero supply, no pending request, or no active position, must be satisfied before closure.

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.
destinationwritableInstruction-specific account supplied by the caller or SDK.
system_programread-onlyStandard Solana program account required by the instruction.

Arguments

No arguments.

Policy & permissions

  • Only the owner is expected. Delegates do not receive this capability by being added; it must be granted explicitly if supported.