Holding units
Units are satoshis. A wallet that does not know which satoshis are marked will treat them as ordinary coins: it may spend them as fee, merge them into change, or move them in front of other coins. Every such accident is final.
Warning
A wallet that recognises and protects unit-carrying outputs is not yet available. Until then, protect them by hand as below.
Do
- Keep units in a separate wallet or address used for nothing else.
- Freeze unit-carrying outputs so automatic coin selection never picks them:
bash
bitcoin-cli lockunspent false '[{"txid":"03b4ed472bd5a7b80120409beab9d2e80976c33355b023cf43e56b632f1d834f","vout":0}]'
bitcoin-cli listlockunspent
Expected output of the second command:
json
[ { "txid": "03b4ed472bd5a7b80120409beab9d2e80976c33355b023cf43e56b632f1d834f", "vout": 0 } ]
Locks set this way are lost on restart unless persistent=true is passed (lockunspent false '[…]' true).
- Check before every spend which outputs carry units:
bash
curl -s "$INDEXER/api/address/<your address>" | jq '.utxos'
- Build transfers explicitly with fixed input and output order (Transfers and splits).
If the output also holds companion runes
Runes-aware wallets and markets treat the output as a rune output and move it whole. Split it first (PQSB units in one output, companion runes in another via a Runes edict) — see Companion rune.
Do not
- Do not use "send max", "consolidate", "sweep" or fee-bumping on a wallet holding units.
- Do not let a wallet choose inputs for a transaction that spends a unit-carrying output.
- Do not send units to an address whose wallet you do not control with coin control.
- Do not send funds to a spent lock's address.
Checking a balance
curl -s "$INDEXER/api/address/<address>" | jq '{balance, outputs: [.utxos[] | {outpoint, value, amount}]}'
amount is units on that output; value is its satoshis. amount ≤ value always.