Bitcoin Forum

Bitcoin => Project Development => Topic started by: weex on November 17, 2015, 04:31:14 PM



Title: QR code for multiple payments at the same time?
Post by: weex on November 17, 2015, 04:31:14 PM
Is it possible to display one QR code that can be used to pay multiple addresses in one transaction? Is this supported by most mobile wallets?


Title: Re: QR code for multiple payments at the same time?
Post by: tyz on November 17, 2015, 08:13:02 PM
Basically, it is possible if you create a QR code in the form of 1BitcoinAdress...;2BitcoinAdress...;3BitcoinAdress...;.... Then you need an app which interprets this kinds of addresses by splitting them with ; and sending multiple transactions to those adresses.


Title: Re: QR code for multiple payments at the same time?
Post by: weex on November 17, 2015, 08:17:55 PM
Basically, it is possible if you create a QR code in the form of 1BitcoinAdress...;2BitcoinAdress...;3BitcoinAdress...;.... Then you need an app which interprets this kinds of addresses by splitting them with ; and sending multiple transactions to those adresses.
The point is to send them as one transaction to save on fees and simplify later tracking for proof of payment purposes.


Title: Re: QR code for multiple payments at the same time?
Post by: derrend on November 17, 2015, 11:35:35 PM
Is it possible to display one QR code that can be used to pay multiple addresses in one transaction?
Absolutely it is.
Create a QR code from a dictionary of addresses and amounts that you wish to send funds to like so:
Code:
{address1:amount,address2:amount,...addressn:amount}
and feed it to an application that uses it to construct a transaction.

I have written an example of how to construct a transaction here (http://stackoverflow.com/questions/23324442/is-there-a-way-to-send-funds-from-a-specific-bitcoin-address-in-a-wallet).

Hope this helps :)


Title: Re: QR code for multiple payments at the same time?
Post by: weex on November 18, 2015, 04:56:15 AM
Thanks for your responses. I'm surprised but not terribly surprised. I tested Mycelium, deSchildbach, and Copay and neither lets you send to more than one addy at the same time. Combining payments is probably not the best idea for privacy but it would make certain applications that might require payment for redundant services simpler.

The two ways I know would be to use bitcoind or blockhain.info/wallet.