getDirectWithdrawIntoPublicBalanceV3Function
Import:@umbra-privacy/sdk
GetWithdrawIntoPublicBalanceV3FunctionArgs
client: IUmbraClient
GetWithdrawIntoPublicBalanceV3FunctionDeps
All fields are optional.accountInfoProvider?: AccountInfoProviderFunctiongetLatestBlockhash?: GetLatestBlockhashtransactionForwarder?: TransactionForwarder
Returns
WithdrawIntoPublicBalanceV3Function
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.
WithdrawIntoPublicBalanceV3Options
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.
Errors
ThrowsEncryptedWithdrawalError. See Errors.
Example
EncryptedWithdrawalError
Thrown bygetDirectWithdrawIntoPublicBalanceV3Function.
Stage values: "initialization" | "validation" | "mint-fetch" | "pda-derivation" | "instruction-build" | "transaction-build" | "transaction-compile" | "transaction-sign" | "transaction-send"
See Errors for full documentation.