Umbra SDK Docs

getArciumEncryptedTokenAccountPda

Umbra SDK reference for Get Arcium Encrypted Token Account Pda.

client


getArciumEncryptedTokenAccountPda(userPublicKey, mint): ProgramDerivedAddress

Defined in: src/utils/pda-generators.ts:333

Derives the PDA for a user's Arcium-encrypted SPL token account.

Parameters

userPublicKey

SolanaAddress

The owner's public key for whom the encrypted token account is derived.

mint

MintAddress

The SPL token mint address associated with the encrypted token account.

Returns

ProgramDerivedAddress

The derived ProgramDerivedAddress for the Arcium-encrypted token account.

Throws

PdaGenerationError When PDA derivation fails (e.g. invalid inputs or program ID).

Remarks

The PDA is derived using the seed: ["arcium_encrypted_token_account", userPublicKey, mint] under the Umbra program ID. This PDA is used to store encrypted token account state for a specific user/mint pair.