Let's say current BTCUSD rate is 1BTC = 3,000USD and average fee is 300satoshi per byte And I need to pay some bitcoin to P2PKH address owned by bitcoin exchange/cafe or bar, basically whoever allows Bitcoin payments.
Because Bitcoin allows that transactions which has multiple same address output, I can do something like this
- Input
- 0.0135 BTC($40)
- Output
- cafe address 0.00045BTC($1.332)
- cafe address 0.00045BTC($1.332)
- cafe address 0.00045BTC($1.332)
- ... 27 more same outputs
I need to pay about $9 extra fee(because each output are 34 byte data therefore each output costs $0.306 (3000 * 0.00000034 * 300)).
Once the transaction is contained in the blockchain, I technically paid 0.0135BTC and I get a cup of coffee.
The problem is, the caffe owner almost never be able to use it. each P2PKH input needs around 148bytes and costs 0.000444BTC(0.00000148 * 300) as fee.
spending 0.00045BTC requires 0.000444BTC.
I don't know who would do this.But this might work.
Could this be happened?