GLAM Policies (Token Hook)Production
execute
Executes the GLAM Policies Token-2022 transfer-hook validation path.
Handler narrative
- Load the GLAM state or program account required by the instruction and verify the signer.
- 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
| Account | Role | Description |
|---|---|---|
| src_account | read-only | Instruction-specific account supplied by the caller or SDK. |
| mint | read-only | Token mint account used by the instruction. |
| dst_account | read-only | Instruction-specific account supplied by the caller or SDK. |
| src_account_authority | read-only | Instruction-specific account supplied by the caller or SDK. |
| extra_metas_account | read-only | Token-2022 transfer-hook extra-account-metas account associated with the mint. |
| src_policy_account | read-only | Instruction-specific account supplied by the caller or SDK. |
| dst_policy_account | read-only | Instruction-specific account supplied by the caller or SDK. |
Arguments
| Argument | Type | Notes |
|---|---|---|
| _amount | u64 | Transfer 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.