GLAMIDL Reference

cancel

Cancels an eligible queued subscription or redemption request.

Applies toVaultTokenized VaultSingle-Asset Vault

Required conditions

  • The request queue or escrow account must contain the expected request state for the signer, request type, timing window, and amount being processed.

Accounts

AccountRoleDescription
glam_statewritableGLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records.
glam_mintwritableToken mint account used or validated by this instruction.
glam_escrowread-onlyEscrow account or escrow token account used by mint flows.
request_queuewritableRequest queue account used by mint subscription or redemption flows.
signersigner, writableCalling authority or fee payer.
userread-onlyuser account read by GLAM Mint Staging's cancel instruction.
recover_token_mintread-onlyToken mint account used or validated by this instruction.
user_atawritableToken account read or written by this instruction.
escrow_atawritableToken account read or written by this instruction.
system_programread-onlySolana System Program.
recover_token_programread-onlyToken program account.
associated_token_programread-onlyAssociated Token Account program.

No arguments

Policy & permissions

  • The request owner can cancel their own request unconditionally — no allowlist, blocklist, or minimum check is enforced.
  • For any other signer: the GLAM owner can cancel another user's request directly; non-owner delegates must hold Mint CancelRequest.
  • After authorization, the recovered asset is validated and the escrowed tokens are returned.

TypeScript SDK usage

await glamClient.invest.cancel();