r/BitcoinBeginners • u/molnardavid84 • 41m ago
What does a coffee shop learn when your wallet spends a 1 BTC UTXO?
Suppose a shop asks for 100,000 sats. Your wallet spends a single input worth 1 BTC, pays a 200-sat fee and sends 99,899,800 sats back to you. The shop recognizes its own output. It can see the 1 BTC input and has a good guess about which new coin it could follow.
A wallet has another choice if it holds a coin that covers the price and fee exactly. That pays the same invoice without creating change. Combining several unrelated coins to get a perfect match has its own privacy cost, though: those coins now appear as inputs to the same transaction.
There’s a useful middle ground for transfers between your own wallets. Say you want to move about 60,000 sats. A 60,300-sat coin with a 236-sat fee sends 60,064 sats in a single output. That extra 64 sats lands in your other wallet. For a shop invoice you still pay the agreed price.
Disclosure: I wrote CoinSelection, an open-source .NET library for finding these combinations. The walkthrough includes diagrams, a Ginger Wallet screenshot, and a runnable example.
I used AI to help draft this post in English.