GLAM ProtocolProduction
close_state
Closes a disabled GLAM state account that is not linked to a mint.
Required conditions
- The state owner must sign; this owner check is defined by the close-state account constraints.
- The state must not be linked to a GLAM mint; the instruction checks that the mint field is the default public key before closure.
- The state must already be disabled; the instruction rejects closure while the state enabled flag is true.
- The vault PDA must be writable so any remaining SOL balance can be transferred to the signer before the state account is closed.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | GLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records. |
| glam_vault | writable | Vault PDA associated with the GLAM state and used as the vault authority. |
| glam_signer | signer, writable | Calling authority or fee payer. |
| system_program | read-only | Solana System Program. |
No arguments
Policy & permissions
- Only the GLAM owner can call this; delegates are rejected.