GLAMIDL Reference

queued_redeem

Queues a redemption request for later fulfillment and claim.

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 request queue or escrow account must contain the expected request state for the signer, request type, timing window, and amount being processed.

Accounts

AccountRoleDescription
glam_stateread-onlyState account owned by the GLAM Protocol program; it records vault configuration, policies, and pricing records.
glam_mintwritableToken-2022 mint associated with the GLAM mint or tokenized vault.
glam_escrowread-onlyProgram-derived account used by this instruction; clients should prefer SDK helpers when available.
request_queuewritableProgram-derived queue associated with the mint for queued subscriptions and redemptions.
signersigner, writableCalling authority. It must be the owner or a delegate with the explicit permission required by this instruction.
signer_mint_atawritableToken mint account used by the instruction.
escrow_mint_atawritableToken mint account used by the instruction.
system_programread-onlyStandard Solana program account required by the instruction.
token_2022_programread-onlyStandard Solana program account required by the instruction.
associated_token_programread-onlyStandard Solana program account required by the instruction.

Arguments

ArgumentTypeNotes
amount_inu64Share-token amount to queue for redemption, in the share mint's smallest unit.

Policy & permissions

  • Investor caller must satisfy mint policy, including allowlist, blocklist, lockup, and minimum amount checks where configured.

TypeScript SDK usage

await glamClient.invest.queuedRedeem(
  new BN(5_000_000_000),
);