GLAMIDL Reference

execute

Executes the GLAM Policies Token-2022 transfer-hook validation path.

Handler narrative

  1. Load the GLAM state or program account required by the instruction and verify the signer.
  2. Load transfer-hook policy data and validate whether the token account may proceed under the configured lockup rules.

Required conditions

  • The submitted accounts must match the declared account list, signer requirements, writable requirements, fixed program addresses, and account relationships shown below.

Accounts

AccountRoleDescription
src_accountread-onlyInstruction-specific account supplied by the caller or SDK.
mintread-onlyToken mint account used by the instruction.
dst_accountread-onlyInstruction-specific account supplied by the caller or SDK.
src_account_authorityread-onlyInstruction-specific account supplied by the caller or SDK.
extra_metas_accountread-onlyToken-2022 transfer-hook extra-account-metas account associated with the mint.
src_policy_accountread-onlyInstruction-specific account supplied by the caller or SDK.
dst_policy_accountread-onlyInstruction-specific account supplied by the caller or SDK.

Arguments

ArgumentTypeNotes
_amountu64Transfer amount passed by the Token-2022 hook; policy validation uses it as transfer context.

Policy & permissions

  • No external integration enablement is required beyond the program-level functionality involved in this instruction.
  • Caller must be the owner or a delegate with the explicit protocol permission required by this instruction.

Cross-instruction constraints

  • No additional cross-instruction constraint is documented beyond account initialization, authority checks, and policy validation.