Pattern · Experimental
Batch payouts
A sender writes one ZIP 321 payment link with many payments. One wallet makes one shielded transaction. Each recipient receives its amount and its memo.
The sender signs one transaction for the whole batch. This pattern is for payrolls, bounty payouts, grant payouts and refund batches. See Payment links for the base pattern.
Warning
This pattern is a proposal. Some wallets do not accept a URI with more than one payment. See Wallet support.
Problem
An app has one sender and many recipients. Each recipient needs its own amount and its own memo. The sender wants one confirmation and one on-chain transaction.
Without this pattern, the app writes one payment link for each recipient. The sender signs one transaction for each link. Thus, 20 recipients need 20 confirmations and 20 transactions. The total fee for 20 transactions is more than the fee for one.
When to use this pattern
Use it in these conditions:
- the sender pays many recipients at the same time;
- each recipient needs a different amount or a different memo;
- the sender's wallet accepts multi-payment URIs.
A different design is better in these conditions:
- The sender needs one recipient only. Then use Payment links.
- The sender's wallet rejects multi-payment URIs. Then the app writes one payment link for each recipient. See Wallet support.
Use cases
- Payroll. An employer pays each employee in one transaction. Each memo can contain one payslip line, for example the period and the amount. Each employee can estimate the size of the batch from the number of actions. See Limits. An employer splits a payroll with more actions than the block limit across two or more blocks. See Cost.
- Bounty payouts. A project operator pays the accepted bounties of a period in one transaction. Each memo contains the name of the bounty.
- Grant payouts. A grant operator pays milestone payments to several grantees in one transaction. Each memo contains the grant name and the milestone. The app writes a memo only for a shielded recipient. The amount to a transparent address is public. See Limits.
- Refund batches. A shop returns funds to many buyers in one transaction. Each memo contains the order number. The sender of a shielded payment is secret. Thus, the shop asks each buyer for a refund address, for example in the memo of the order payment.
Mechanism
- Sender
- A person or a program with a shielded wallet.
- Recipient
- A person or a service with a shielded address.
- App
- A web page or a script. It reads a list of rows and writes the URI.
- Row
- One recipient address, one amount, and one memo.
- URI
- A ZIP 321 payment link. One payment per row.
- The app reads the list of rows.
- The app checks each row. If one row has an error, the app stops and writes no URI.
- The app writes one ZIP 321 URI with one payment for each row.
- The app shows the URI as text and as a QR code.
- The sender opens the URI in a shielded wallet.
- The wallet shows one confirmation screen with all the payments.
- The sender signs one transaction.
- The wallet pays each recipient the row amount. Each recipient receives the row memo in its note.
Indexed parameters
For many payments, the parameter names have an index (ZIP 321). The first payment can have no index. Each later payment has an index after its parameter name.
zcash:?address=<addr1>&amount=<amt1>&memo=<memo1>
&address.2=<addr2>&amount.2=<amt2>&memo.2=<memo2>
&address.3=<addr3>&amount.3=<amt3>&memo.3=<memo3>
The index is in the range 1 to 9999. One payment can have no index. All parameters of one payment have the same index. The parameters can be in any order in the URI.
Partial payment
Some wallets read the first payment only. The wallet shows a send screen with one recipient. The sender does not see the other payments. Thus, the sender signs a partial payment. The wallet shows no error.
An app cannot know the wallet of the sender from the URI. As a check, the app shows the number of payments and the total. The sender compares the two values with the confirmation screen of the wallet. See Wallet support.
Cost
- Each recipient. One shielded output. After NU6.3, a wallet puts the output to an Orchard receiver in the Ironwood bundle (ZIP 326). Each such output is in one action. A Sapling recipient receives a Sapling output.
- Number of actions. An Ironwood bundle has at least as many actions as the larger of its spends and its outputs. In an Orchard bundle, one action can contain a spend and an output only at the same expanded receiver (ZIP 2006). Under ZIP 326, a wallet SHOULD NOT put a real spend and an output with value in one action. Thus, in the Orchard bundle of a wallet, the number of actions is at least the spends plus the outputs. A sender with many small notes needs more actions than recipients. The fee is larger for each extra action. See ZIP 317.
- Fee. From block 3,590,000, under ZIP 2009, the fee is 1,000 zatoshis per logical action. A wallet with the older rule of ZIP 317 pays 5,000 zatoshis for each action. A payout to 20 recipients from an Ironwood note has 21 actions, with one change output. The fee is 21,000 zatoshis under ZIP 2009, or 105,000 zatoshis under the older rule. With zcash_client_backend 0.25.0, the same payout from an Orchard note had 22 actions. Two actions were in an Orchard bundle, for the spend and the change. The fee was 22,000 zatoshis, or 110,000 zatoshis under the older rule.
- Compare. The fee for 20 separate payments from Ironwood notes is 40,000 zatoshis under ZIP 2009, or 200,000 zatoshis under the older rule. Each payment has two actions. With the same library, 20 separate payments from Orchard notes had 80 actions. The total was 80,000 zatoshis under ZIP 2009, or 400,000 zatoshis under the older rule.
- Block limit. Under NU7 (ZIP 218), one block has at most 330 Orchard and Ironwood actions, across all of its transactions. Thus, one payout transaction has at most 330 actions. With zcash_client_backend 0.25.0 and one note, a payout had at most 329 recipients, or 328 from an Orchard note. The block of a large payout has less space for other shielded transactions.
- URI limit. A ZIP 321 index is in the range 1 to 9999. One payment can have no index. Thus, a URI can hold up to 10,000 payments by syntax alone. The block limit is smaller than this.
- Polite actions. See Polite actions for a note on action counts.
- Wallet support. The wallet must accept multi-payment ZIP 321 URIs. The wallet must send memo bytes unchanged.
Wallet support
The support of each tested wallet for multi-payment ZIP 321 URIs is in the table. The results are from November 2026. The tester used one URI with two or three payments to unified addresses. Each payment had a different amount and a different memo.
Warning
With a partial payment, the wallet pays one recipient of a batch. The sender sees one confirmation, and the batch looks complete. The other recipients receive nothing.
| Wallet | Version | Network | Result |
|---|---|---|---|
| Zkool | 6.35.0 | Testnet | Accepts. Shows each payment with its own address, amount and memo. |
| Zingo PC | 2.0.29 (206) | Testnet | Accepts. Shows each payment with its own address, amount and memo, and the total. |
| Zingo mobile | 2.1.1 (323) | Testnet |
Partial payment. Reads payment 1 only. Ignores the other payments. The test transaction is
3db48157…27bb.
|
| Vizor | 0.0.65 | Mainnet | Partial payment. Reads payment 1 only. Ignores the other payments. |
| Zodl | 3.19.0 | Mainnet | Partial payment. Reads payment 1 only. Ignores the other payments. |
The Zcash Open Development Lab changed the name of the Zashi wallet to Zodl in February 2026. See the announcement on the Zcash community forum.
To add a wallet to this list, test the multi-payment URI on the chosen network. Open a pull request with the wallet name, version, network and result.
Limits
- Partial payment. Some wallets ignore the extra payments and show no error. The app shows the number of payments and the total. The sender compares the two values with the confirmation screen of the wallet. See Wallet support.
- Memo integrity. Some wallets change binary or control characters in memos. Use single-line printable ASCII for each memo.
- Address format. Transparent amounts are visible when recipients use both transparent and shielded addresses. Use shielded addresses for each recipient.
- URI length. A long URI is too large for a scannable QR code. A file transfer or a short link is necessary for a payout with many recipients.
- Error on one row. The wallet rejects the whole transaction when a row is malformed. The app must check each row before it writes the URI.
- Privacy. Each recipient sees the transaction, its number of actions and its fee. Thus, a recipient can estimate the size of the batch. The block time of the transaction is public.
Spec
This pattern uses the existing protocol. ZIP 321 payment links and ZIP 302 memos are all that is necessary. The URI has these parameters for each payment:
address[.N] the recipient address, unified or shielded
amount[.N] the payment amount in ZEC, decimal
memo[.N] the memo as base64url, no padding
label[.N] an optional short name of the recipient
message[.N] an optional message about this payment
The index N is in the range 1 to 9999. The first payment can have no index. The same index applies to each parameter of one payment. A transparent address has no memo. A URI with a memo for a transparent address is invalid.
A valid URI has one payment or more. A URI with one payment is a Payment link.
Demo: a small batch
The demo writes one ZIP 321 URI from three rows. Each row has an address, an amount and a memo. Add or remove rows. The demo updates the URI and the QR code after each change.
Caution
The sample addresses are Testnet. Do not send Mainnet funds to these addresses.
Wait
Link
Toy example
A lab runs a quarterly grant round. The round has three winners. Each wins a different amount.
Winner Amount Memo
Alice 0.5 ZEC grant/2026Q4/winner-1
Bob 0.3 ZEC grant/2026Q4/winner-2
Carol 0.2 ZEC grant/2026Q4/winner-3
The lab writes one ZIP 321 URI with three payments. The treasurer opens the URI in a wallet that accepts multi-payment URIs. The treasurer signs one transaction. The three winners each receive one note with the grant round memo.