Private Transfers
This guide covers sending tokens privately between privacy addresses using the Privacy Boost React SDK.Basic Transfer
Transfer Parameters
Paying Several Recipients at Once
sendBatch 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. Output order follows the list, and the same recipient may appear more
than once.
send, string amounts are parsed using the token’s decimals.
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.