GLAM Policies (Token Hook)Production
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
| 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. |
| destination | writable | Instruction-specific account supplied by the caller or SDK. |
| system_program | read-only | Standard 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.