GLAM Mint StagingStaging
queued_subscribe
Queues a subscription request for later fulfillment and claim.
Handler narrative
- Load the GLAM state or program account required by the instruction and verify the signer.
- Validate mint policy, transfer the subscription asset, and either issue shares immediately or create a queued request.
Required conditions
- The submitted accounts must match the declared account list, signer requirements, writable requirements, fixed program addresses, and account relationships shown below.
- The GLAM state account is the source of truth for owner, enabled integrations, delegate permissions, policies, assets, borrowable assets, timelock settings, mint linkage, and pricing records.
- 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 | read-only | State account owned by the GLAM Protocol program; it records vault configuration, policies, and pricing records. |
| glam_mint | writable | Token-2022 mint associated with the GLAM mint or tokenized vault. |
| glam_escrow | read-only | Program-derived account used by this instruction; clients should prefer SDK helpers when available. |
| request_queue | writable | Program-derived queue associated with the mint for queued subscriptions and redemptions. |
| signer | signer, writable | Calling authority. It must be the owner or a delegate with the explicit permission required by this instruction. |
| deposit_asset | read-only | Instruction-specific account supplied by the caller or SDK. |
| escrow_deposit_ata | writable | Token account read or written by the instruction. |
| signer_deposit_ata | writable | Token account read or written by the instruction. |
| system_program | read-only | Standard Solana program account required by the instruction. |
| deposit_token_program | read-only | Instruction-specific account supplied by the caller or SDK. |
| associated_token_program | read-only | Standard Solana program account required by the instruction. |
Arguments
| Argument | Type | Notes |
|---|---|---|
| amount_in | u64 | Base-asset amount to queue for subscription, in the base asset's smallest unit. |
Policy & permissions
- No external integration enablement is required beyond the program-level functionality involved in this instruction.
- 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),
true,
);Cross-instruction constraints
- No additional cross-instruction constraint is documented beyond account initialization, authority checks, and policy validation.