GLAMIDL Reference

token_close_account

Closes a vault-owned SPL token account.

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.
integration_authorityread-onlyProgram-derived authority used by the integration for downstream invocation.
cpi_programread-onlyDownstream program invoked by this instruction.
glam_protocol_programread-onlyGLAM Protocol program account used for authorization or CPI.
system_programread-onlySolana System Program.
token_accountwritableToken account read or written by this instruction.

No arguments

Policy & permissions

  • Signer must be the GLAM owner or any unexpired delegate; no SPL Transfer or token-close-specific permission is required.
  • Routed through cpi_proxy.

TypeScript SDK usage

await glamClient.vault.closeTokenAccounts([
  tokenAccount,
]);