GLAMIDL Reference

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

AccountRoleDescription
glam_statewritableGLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records.
glam_vaultwritableVault PDA associated with the GLAM state and used as the vault authority.
glam_signersigner, writableCalling authority or fee payer.
system_programread-onlySolana System Program.

No arguments

Policy & permissions

  • Only the GLAM owner can call this; delegates are rejected.