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.
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments