GLAMIDL Reference

close_mint

Closes a zero-supply GLAM mint after unlinking it from state and clearing its request queue.

Applies toVaultTokenized VaultSingle-Asset Vault

Required conditions

  • Mint actions must satisfy the linked GLAM state, Token-2022 mint configuration, mint policy, and any request queue or escrow state involved in the flow.
  • The GLAM state owner must sign through the mint close authority path.
  • The Token-2022 mint supply must be zero before the mint account can be closed.
  • For tokenized vaults, the request queue account must be present and its request count must be zero.
  • The transfer-hook extra-account-metas account must be writable because the mint close flow closes it through the GLAM Policies program.
  • The mint must be unlinked from the GLAM state before the Token-2022 mint account and request queue are closed.

Accounts

AccountRoleDescription
glam_statewritableGLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records.
glam_signersigner, writableCalling authority or fee payer.
glam_mintwritableToken mint account used or validated by this instruction.
request_queuewritable, optionalRequest queue account used by mint subscription or redemption flows.
extra_metas_accountwritableextra metas account account read or updated by GLAM Mint Staging's close mint instruction.
system_programread-onlySolana System Program.
policies_programread-onlypolicies program account invoked or checked by this instruction.
token_2022_programread-onlyToken-2022 program account.
glam_protocolread-onlyGLAM Protocol program account used for authorization or CPI.

No arguments

Policy & permissions

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

TypeScript SDK usage

await glamClient.mint.close();