GLAM Policies (Transfer Hook)Production
create_policy
Creates a GLAM Policies account for transfer-hook lockup enforcement.
Required conditions
- Creation-style flows require the target account or PDA to be uninitialized or intentionally updatable, the fee payer to be writable, and the System Program to be present when rent or allocation is needed.
Accounts
| Account | Role | Description |
|---|---|---|
| policy_account | writable | Policy account or policy-related account. |
| authority | signer, writable | authority account read or updated by GLAM Policies (Transfer Hook)'s create policy instruction. |
| subject | read-only | subject account read by GLAM Policies (Transfer Hook)'s create policy instruction. |
| payer | signer, writable | Fee payer funding rent or account allocation for this instruction. |
| mint | read-only | Token mint account used or validated by this instruction. |
| subject_token_account | read-only | Token account read or written by this instruction. |
| system_program | read-only | Solana System Program. |
Arguments
| Argument | Type | Notes |
|---|---|---|
| locked_until | u64 | |
| time_unit | TimeUnit |
Policy & permissions
authoritymust be the Token-2022 mint authority or permanent delegate.- A separate
payeris allowed. Existing lockups can only be extended; not shortened. - GLAM owner/delegate authority is not used.