GLAMIDL Reference

set_token_accounts_states

Freezes or thaws Token-2022 token accounts associated with the GLAM mint.

Applies toVaultTokenized VaultSingle-Asset Vault

Accounts

AccountRoleDescription
glam_stateread-onlyGLAM 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.
token_2022_programread-onlyToken-2022 program account.

Arguments

ArgumentTypeNotes
frozenbool

Policy & permissions

  • Signer must be the GLAM owner or a delegate holding the Mint SetTokenAccountState permission.
  • Affected token accounts must be Token-2022 accounts whose freeze authority is the GLAM mint PDA.

TypeScript SDK usage

await glamClient.mint.setTokenAccountsStates(
  [tokenAccount],
  true,
);