Skip to main content

Private Transfers

This guide covers sending tokens privately between privacy addresses using the Privacy Boost CLI.

CLI Command

Output:

Command Parameters

Paying Several Recipients at Once

send-batch pays every recipient from one set of input notes, in a single request: one fee instead of one per recipient, and one epoch slot instead of several. Repeat --to once per recipient.
The whole batch resolves to one request id, printed the same way send prints its result.

How many recipients fit

The server proves a fixed set of (inputs, outputs) shapes, and a transfer has to fit inside one of them. Its output count is your recipient count plus a change note, so a longer recipient list leaves room for fewer input notes: So 5 inputs by 3 outputs is not provable, even though 15 inputs and 11 outputs are each individually fine. In practice: past two recipients, the transfer has to be coverable by at most four notes. Consolidate fragmented notes first if a batch is rejected with UNSUPPORTED_TRANSFER_SHAPE, or split the payout across two batches.

Programmatic Usage (Rust)

Multi-recipient sends take (recipient, amount) pairs:

TransferResult

Privacy Address Validation

Validate the recipient address before sending:

Address Lookup

Look up a user’s privacy address:

Error Handling

Best Practices

1. Validate Addresses Before Sending

Always validate the privacy address before attempting a transfer.

2. Check Balance After Transfer

Next Steps