Prerequisites
- An opened
createCloakobject with a private balance. See Quickstart.
Withdraw an exact amount
amount is what arrives. The pool’s fee is added on top and taken from the private balance:
Withdraw versus send
withdraw to a cloak_ address throws route.private: use send.
Privacy when withdrawing
The recipient address and the amount are public. Withdrawing exactly what was deposited, shortly after depositing, is the easiest case for an observer to link. See Privacy guarantees.Common errors
With the low-level API
partialWithdraw(inputs, recipient, gross, options) and fullWithdraw(inputs, recipient, options)
take the gross amount; the fee comes out of it. Keep inputs at two notes or fewer. See
Low-level API.
Related
- Deposit
- Payment links: let someone else claim to their own address.