GLAMIDL Reference

close_policy

Closes a GLAM Policies lockup policy account.

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
policy_accountwritablePolicy account used by GLAM Policies for transfer-hook lockup checks.
signersigner, writableCalling authority. It must be the owner or a delegate with the explicit permission required by this instruction.
subjectwritableInstruction-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.