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.
getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction
Import:@umbra-privacy/sdk
GetEncryptedBalanceToPublicBalanceDirectWithdrawerFunctionArgs
client: IUmbraClient
GetEncryptedBalanceToPublicBalanceDirectWithdrawerFunctionDeps
All fields are optional.accountInfoProvider?: AccountInfoProviderFunctiongetLatestBlockhash?: GetLatestBlockhashtransactionForwarder?: TransactionForwarder
Returns
EncryptedBalanceToPublicBalanceDirectWithdrawerFunction
destinationAddress: Address- The public ATA recipient. Must be an initialised token account formint.mint: Address- Token mint address.withdrawalAmount: U64- Amount in base token units to withdraw from the encrypted balance.
WithdrawOptions
priorityFees?: U64- Compute unit price in micro-lamports. Default:0n.purpose?: number- Caller-defined purpose tag stored on-chain. Default:0.optionalData?: OptionalData32- 32-byte caller metadata. Default: 32 zero bytes.awaitCallback?: boolean- Whether to wait for the MPC callback. Default:true.skipPreflight?: boolean- Skip Solana preflight simulation. Default:false.maxRetries?: number- Max RPC retry attempts for transaction sending.accountInfoCommitment?: Commitment- Per-call commitment for RPC account reads. Default:"confirmed".epochInfoCommitment?: Commitment- Per-call commitment for epoch info fetches. Default:"confirmed".
WithdrawResult
queueSignature- Signature of the handler (queue computation) transaction.callbackStatus- The outcome of computation monitoring:"finalized","pruned", or"timed-out". Present whenawaitCallbackistrue.callbackSignature- Signature of the Arcium MPC callback. Present whencallbackStatusis"finalized".callbackElapsedMs- Milliseconds spent waiting for the callback.rentClaimSignature- Signature for reclaiming rent from the computation account. Attempted regardless of callback outcome.rentClaimError- Error from rent reclaim attempt, if any. The withdrawal itself still succeeded.
Errors
ThrowsEncryptedWithdrawalError. See Errors.
Example
EncryptedWithdrawalError
Thrown bygetEncryptedBalanceToPublicBalanceDirectWithdrawerFunction.
Stage values: "initialization" | "validation" | "mint-fetch" | "pda-derivation" | "instruction-build" | "transaction-build" | "transaction-compile" | "transaction-sign" | "transaction-send"
See Errors for full documentation.