Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: giantdragon on July 14, 2011, 06:42:06 PM



Title: Send many small payments
Post by: giantdragon on July 14, 2011, 06:42:06 PM
Is it possible to send many small payments simultaneously and pay smaller transaction fee?


Title: Re: Send many small payments
Post by: willphase on July 14, 2011, 08:55:56 PM
Yes, the bitcoin protocol allows this but you'd have to craft the transaction yourself since the bitcoin client doesn't allow you to sent payments to multiple addresses in one transaction. As long as the sum of the inputs is less than the sum of the outputs then the transaction is valid.

read this for more info: https://en.bitcoin.it/wiki/Transaction

Will


Title: Re: Send many small payments
Post by: giantdragon on July 14, 2011, 09:20:34 PM
I want to do this from my PHP website. Does BitCoin API allows it? Does external libs exists to do that?


Title: Re: Send many small payments
Post by: Leon on July 14, 2011, 10:43:40 PM
I want to do this from my PHP website. Does BitCoin API allows it? Does external libs exists to do that?

There was a website that offered something like this and I think a script too, not sure if it was in PHP. I'll look for it.


Title: Re: Send many small payments
Post by: willphase on July 14, 2011, 10:50:17 PM
Isn't this just the sendmany function? ./bitcoind --help and read up on it. No special crafting needed, format already exists to do this.

I wasn't aware the sendmany command had been pulled into main - that's pretty cool.  Someone needs to update the api call list (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list)?

Will


Title: Re: Send many small payments
Post by: giantdragon on July 15, 2011, 10:28:08 AM
Thanks.