GLAMIDL Reference

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

AccountRoleDescription
glam_statewritableGLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records.
glam_vaultread-onlyVault PDA associated with the GLAM state and used as the vault authority.
glam_mintwritableToken mint account used or validated by this instruction.
glam_escrowread-onlyEscrow account or escrow token account used by mint flows.
request_queueread-onlyRequest queue account used by mint subscription or redemption flows.
signersigner, writableCalling authority or fee payer.
signer_mint_atawritableToken mint account used or validated by this instruction.
escrow_mint_atawritableToken mint account used or validated by this instruction.
deposit_assetread-onlyMint account for the asset being deposited, subscribed with, or used for fee settlement.
vault_deposit_atawritableToken account read or written by this instruction.
signer_deposit_atawritableToken account read or written by this instruction.
signer_policywritable, optionalPolicy account or policy-related account.
system_programread-onlySolana System Program.
deposit_token_programread-onlyToken program account.
token_2022_programread-onlyToken-2022 program account.
associated_token_programread-onlyAssociated Token Account program.
policies_programread-onlypolicies program account invoked or checked by this instruction.
glam_protocol_programread-onlyGLAM Protocol program account used for authorization or CPI.

Arguments

ArgumentTypeNotes
amount_inu64

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,
);