GLAMIDL Reference

claim_fees

Claims accrued manager or protocol fees from a tokenized vault.

Required conditions

  • 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 vault must have fresh pricing records for the operation; fee or fulfillment math depends on NAV values written by the pricing flow.

Accounts

AccountRoleDescription
glam_stateread-onlyState account owned by the GLAM Protocol program; it records vault configuration, policies, and pricing records.
glam_vaultwritableVault account controlled by the GLAM Protocol program; conceptually derived from the state account and used as the vault authority.
glam_mintwritableToken-2022 mint associated with the GLAM mint or tokenized vault.
glam_escrowread-onlyProgram-derived account used by this instruction; clients should prefer SDK helpers when available.
escrow_mint_atawritableToken mint account used by the instruction.
signersigner, writableCalling authority. It must be the owner or a delegate with the explicit permission required by this instruction.
deposit_assetread-onlyInstruction-specific account supplied by the caller or SDK.
vault_deposit_atawritableToken account read or written by the instruction.
protocol_fee_authorityread-onlyInstruction-specific account supplied by the caller or SDK.
protocol_fee_authority_atawritableToken account read or written by the instruction.
manager_fee_authorityread-onlyInstruction-specific account supplied by the caller or SDK.
manager_fee_authority_atawritableToken account read or written by the instruction.
glam_configread-onlyGlobal GLAM configuration account for fee and asset/oracle metadata.
glam_protocol_programread-onlyGLAM Protocol program account used for authorization or CPI.
system_programread-onlyStandard Solana program account required by the instruction.
associated_token_programread-onlyStandard Solana program account required by the instruction.
deposit_token_programread-onlyInstruction-specific account supplied by the caller or SDK.
token_2022_programread-onlyStandard Solana program account required by the instruction.

Arguments

No arguments.

Policy & permissions

  • Manager or protocol authority is required according to the mint and fee configuration.

TypeScript SDK usage

await glamClient.fees.claimFees();