Units ride on satoshis
A valid mint marks the first R satoshis of input 0. One marked satoshi is one unit. There are no balances stored by address and no transfer messages: the indexer just follows satoshis.
The rule in one picture
Lay every input's satoshis end to end, in input order. Cut the line into outputs, in output order. Each output gets the marked satoshis that fall inside its slice.
inputs [ in0: 5,000 sat ─ marked [0, R) by the mint ][ in1 … ]
line ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
outputs [ out0 ][ out1 OP_RETURN ][ out2 change ][ fee ]
With R ≤ value(out0), all R units land in output 0.
Cases
| # | Situation | Result |
|---|---|---|
| 1 | Output values cover the marked range exactly | every unit goes to the output whose slice contains it |
| 2 | An output is smaller than the marked range in front of it | the remaining units spill into the next output |
| 3 | Marked satoshis fall into an OP_RETURN output | those units are burned |
| 4 | Marked satoshis fall past the last output (into the fee) | those units are burned |
| 5 | A transaction has no marked inputs and is not a valid mint | ignored |
| 6 | Two marked inputs | their ranges are concatenated in input order |
Byte-exact version: State transition.
Consequences
- Wallets that know nothing about units will spend them as fee or change. Keep unit-carrying outputs out of ordinary spending; see Holding units.
- Splitting is an ordinary Bitcoin transaction. Each output must stay above Bitcoin's dust limit: 294 sat (P2WPKH) or 330 sat (P2TR).
- An output holding
nunits must hold at leastnsatoshis — and at least the dust limit.