GLAM Policies (Token Hook)Production
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
| Account | Role | Description |
|---|---|---|
| policy_account | writable | Policy account used by GLAM Policies for transfer-hook lockup checks. |
| signer | signer, writable | Calling authority. It must be the owner or a delegate with the explicit permission required by this instruction. |
| subject | 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.