Withdraw spends a private pool note and pays out to a public wallet.

Disclosure policy

Sender may be public or private. Private sender requires Protocol Relay (zero public deposit). operation.execute() is Direct Submission only and does not contact the relayer. After prepare, call requiredSubmissionMethod(operation.prepared, zkConfigNonce) from @arcanetech/privacy-sdk-stellar/transact. Use the nonce configured for your deployed pool:

Example

The addresses, contracts, and seed values below are placeholders, not runnable testnet data. Use the matching pool configuration and audit public key from Set up the SDK. Create the client using Frontend integration or Backend integration, and load real account state as described in State methods.

Seed state

Run operation

Examples

Explore the frontend and backend reference applications.

State methods

Seed state is a doc fixture; production data flows.

Operation lifecycle

Direct Submission vs Protocol Relay.