Example 7: Z2Z (Sap/Orc)

Info

Amounts are in kzats (1 kzats = 1000 zats = 0.01 mZEC)

Let’s assume we choose (Transparent, Sapling, Orchard) in the Pool Usage Order which means we’d rather use our Transparent notes first and keep our Orchard notes.

Suppose we have the following notes:

  • T: 50
  • S: 50
  • O: 50

Let’s consider the following order:

order #TSO
110

The number is the quantity for a given address type.

Settings

Note

By default, the transaction will be directly Orchard to Orchard.

We must exclude the Orchard notes if we want a Sapling to Orchard transaction.

Otherwise, the transaction will be z2z as it is more private than a t2z.

We’ll skip the detailed explanation from now on.

Final transaction

  • Inputs:
    • S: 50
  • Outputs:
    • Order 1: O/10
    • Change: S/30
  • Fee: 10

The change always goes back to the origin pool.