SPL IntegrationProduction
token_close_account
Closes a vault-owned SPL token account.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | GLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records. |
| glam_vault | writable | Vault PDA associated with the GLAM state and used as the vault authority. |
| glam_signer | signer, writable | Calling authority or fee payer. |
| integration_authority | read-only | Program-derived authority used by the integration for downstream invocation. |
| cpi_program | read-only | Downstream program invoked by this instruction. |
| glam_protocol_program | read-only | GLAM Protocol program account used for authorization or CPI. |
| system_program | read-only | Solana System Program. |
| token_account | writable | Token account read or written by this instruction. |
No arguments
Policy & permissions
- Signer must be the GLAM owner or any unexpired delegate; no SPL
Transferor token-close-specific permission is required. - Routed through
cpi_proxy.
TypeScript SDK usage
await glamClient.vault.closeTokenAccounts([
tokenAccount,
]);