GLAM MintProduction
subscribe
Performs an instant subscription into a tokenized vault when policy and valuation allow.
Applies toVaultTokenized VaultSingle-Asset 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 investor must satisfy mint policy checks, including allowlist, blocklist, minimum subscription amount, max-cap, and lockup configuration where enabled.
- The subscription asset mint and token accounts must match the mint's base asset configuration, and the resulting share calculation must use the validated NAV path for the flow.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | GLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records. |
| glam_vault | read-only | Vault PDA associated with the GLAM state and used as the vault authority. |
| glam_mint | writable | Token mint account used or validated by this instruction. |
| glam_escrow | read-only | Escrow account or escrow token account used by mint flows. |
| request_queue | read-only | Request queue account used by mint subscription or redemption flows. |
| signer | signer, writable | Calling authority or fee payer. |
| signer_mint_ata | writable | Token mint account used or validated by this instruction. |
| escrow_mint_ata | writable | Token mint account used or validated by this instruction. |
| deposit_asset | read-only | Mint account for the asset being deposited, subscribed with, or used for fee settlement. |
| vault_deposit_ata | writable | Token account read or written by this instruction. |
| signer_deposit_ata | writable | Token account read or written by this instruction. |
| signer_policy | writable, optional | Policy account or policy-related account. |
| system_program | read-only | Solana System Program. |
| deposit_token_program | read-only | Token program account. |
| token_2022_program | read-only | Token-2022 program account. |
| associated_token_program | read-only | Associated Token Account program. |
| policies_program | read-only | policies program account invoked or checked by this instruction. |
| glam_protocol_program | read-only | GLAM Protocol program account used for authorization or CPI. |
Arguments
| Argument | Type | Notes |
|---|---|---|
| amount_in | u64 |
Policy & permissions
- Investor caller must satisfy mint policy, including allowlist, blocklist, lockup, and minimum amount checks where configured.
TypeScript SDK usage
await glamClient.invest.subscribe(
new BN(10_000_000_000),
false,
);