Documentation Index
Fetch the complete documentation index at: https://sdk.umbraprivacy.com/llms.txt
Use this file to discover all available pages before exploring further.
getNetworkEncryptionToSharedEncryptionConverterFunction
Import:@umbra-privacy/sdk
GetNetworkEncryptionToSharedEncryptionConverterFunctionArgs
client: IUmbraClient
GetNetworkEncryptionToSharedEncryptionConverterFunctionDeps
accountInfoProvider?: AccountInfoProviderFunctiongetLatestBlockhash?: GetLatestBlockhashtransactionForwarder?: TransactionForwarder
Returns
NetworkEncryptionToSharedEncryptionConverterFunction
mints: readonly Address[]- Token mints to convert. Processed sequentially - each successful conversion is independent.
ConvertToSharedEncryptionResult
converted- Mints successfully converted. Value is the transaction signature.skipped- Mints not converted. Value is the reason.
ConvertToSharedEncryptionSkipReason
"non_existent"- No encrypted token account exists for this mint."not_initialised"- The encrypted token account has not been initialised."already_shared"- This mint is already in shared mode."balance_not_initialised"- The balance state is not yet initialised (e.g. no deposits have occurred).
Errors
ThrowsConversionError if any non-skippable error occurs. See Errors.
Example
getMintEncryptionKeyRotatorFunction
Import:@umbra-privacy/sdk
GetMintEncryptionKeyRotatorFunctionArgs
client: IUmbraClient
GetMintEncryptionKeyRotatorFunctionDeps
accountInfoProvider?: AccountInfoProviderFunctiongetLatestBlockhash?: GetLatestBlockhashtransactionForwarder?: TransactionForwardermintX25519KeypairGenerator?: MintX25519KeypairGeneratorFunction- Override the per-mint X25519 keypair derivation.
Returns
MintEncryptionKeyRotatorFunction
mint: Address- The token mint whose X25519 key to rotate.
Errors
ThrowsConversionError. See Errors.
Example
ConversionError
Thrown by both conversion functions. Stage values:"initialization" | "account-fetch" | "pda-derivation" | "instruction-build" | "transaction-build" | "transaction-compile" | "transaction-sign" | "transaction-validate" | "transaction-send"
See Errors for full documentation.