GLAM Mint StagingStaging
close_mint
Closes a zero-supply GLAM mint after unlinking it from state and clearing its request queue.
Handler narrative
- Load the GLAM state or program account required by the instruction and verify the signer.
- Apply mint lifecycle, token-account, ACL, or policy changes after verifying the required authority.
Required conditions
- The submitted accounts must match the declared account list, signer requirements, writable requirements, fixed program addresses, and account relationships shown below.
- The GLAM state account is the source of truth for owner, enabled integrations, delegate permissions, policies, assets, borrowable assets, timelock settings, mint linkage, and pricing records.
- 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
| Account | Role | Description |
|---|---|---|
| glam_state | writable | State account owned by the GLAM Protocol program; it records vault configuration, policies, and pricing records. |
| glam_signer | signer, writable | Calling authority. It must be the owner or a delegate with the explicit permission required by this instruction. |
| glam_mint | writable | Token-2022 mint associated with the GLAM mint or tokenized vault. |
| request_queue | writable, optional | Program-derived queue associated with the mint for queued subscriptions and redemptions. |
| extra_metas_account | writable | Token-2022 transfer-hook extra-account-metas account associated with the mint. |
| system_program | read-only | Standard Solana program account required by the instruction. |
| policies_program | read-only | GLAM Policies program account used for Token-2022 transfer-hook behavior. |
| token_2022_program | read-only | Standard Solana program account required by the instruction. |
| glam_protocol | read-only | GLAM Protocol program account used for authorization or CPI. |
Arguments
No arguments.
Policy & permissions
- No external integration enablement is required beyond the program-level functionality involved in this instruction.
- Only the owner is expected. Delegates do not receive this capability by being added; it must be granted explicitly if supported.
TypeScript SDK usage
await glamClient.mint.close();Cross-instruction constraints
- No additional cross-instruction constraint is documented beyond account initialization, authority checks, and policy validation.