PublicKey.findProgramAddressSync to deterministically derive addresses.
State and vault PDAs
getStatePda
Derives the state account PDA for a vault.Initialization key (unique identifier for the vault)
Vault owner public key
GLAM protocol program ID
State account PDA
getVaultPda
Derives the vault PDA for a state account.State account PDA
GLAM protocol program ID
Vault PDA
Mint PDAs
getMintPda
Derives the share mint PDA for a tokenized vault.State account PDA
Mint index (typically 0)
GLAM mint program ID
Share mint PDA
getEscrowPda
Derives the escrow account PDA for a mint.Mint PDA
GLAM mint program ID
Escrow account PDA
getRequestQueuePda
Derives the request queue PDA for subscription/redemption requests.Share mint public key
GLAM mint program ID
Request queue PDA
Transfer hook PDAs
getExtraMetasPda
Derives the extra account metas PDA for transfer hooks.Mint public key
Extra account metas PDA
getAccountPolicyPda
Derives the account policy PDA for a token account.Token account public key
Account policy PDA
Config PDAs
getGlobalConfigPda
Derives the global config PDA.Global config PDA