Author

Topic: [ANN] Bitcoin Transaction Split Script using BlockChain.info API (Read 1929 times)

hero member
Activity: 1582
Merit: 759
awesome.. Will def. keep you up to date.
Question. Did we figure out if there is a limit to the amount of addresses you can send it to? I heard someone mention 30, but then also read its being used in production by a few entities. So I figured I would just ask you.

-A

I have only tested up to 15 with this script. However, the script can support as many as BlockChain.info's sendmany API will allow (which I think may be unlimited).

I'd recommend you test the script before production with an estimate of the amount of addresses you require.
newbie
Activity: 19
Merit: 0
awesome.. Will def. keep you up to date.
Question. Did we figure out if there is a limit to the amount of addresses you can send it to? I heard someone mention 30, but then also read its being used in production by a few entities. So I figured I would just ask you.

-A
hero member
Activity: 1582
Merit: 759
Does not blockchain.info directly offer this API for multi-send ?
My thoughts exactly, what's wrong with just using the API directly?
Code:
https://blockchain.info/merchant/$guid/sendmany?password=$main_password&second_password=$second_password&recipients=$recipients&shared=$shared&fee=$fee

This script is intended to be used for callbacks.

The specific use case for the client who requested this script was to make a forwarding address. Specifically, where when a specific address receives a transaction, the amount is split and sent to multiple other addresses based on a percentage value. This whole process happening automatically and without delay (with the availability for confirmation delay).

Hi Initscri. I recently started a project that will most probably involve using this code you have put up. If I am able to bring my project to life successfully, I shall certainly donate for your addition to the community. I also wanted to see if needed, you might have to time to help a bit more on the project itself. I am not sure as of right now if additional help is needed as I'm waiting for my developer to figure out how large scale the project will be.

Thanks
A Believer



Hi,

Awesome. I'm glad to hear it is being put to good use. As for the employment opportunity (freelance), I would happy to help. Just PM me the specifics and details of the project when you have a better understanding of the scale of the project.

Thanks,
newbie
Activity: 19
Merit: 0
Does not blockchain.info directly offer this API for multi-send ?
My thoughts exactly, what's wrong with just using the API directly?
Code:
https://blockchain.info/merchant/$guid/sendmany?password=$main_password&second_password=$second_password&recipients=$recipients&shared=$shared&fee=$fee

This script is intended to be used for callbacks.

The specific use case for the client who requested this script was to make a forwarding address. Specifically, where when a specific address receives a transaction, the amount is split and sent to multiple other addresses based on a percentage value. This whole process happening automatically and without delay (with the availability for confirmation delay).

Hi Initscri. I recently started a project that will most probably involve using this code you have put up. If I am able to bring my project to life successfully, I shall certainly donate for your addition to the community. I also wanted to see if needed, you might have to time to help a bit more on the project itself. I am not sure as of right now if additional help is needed as I'm waiting for my developer to figure out how large scale the project will be.

Thanks
A Believer

hero member
Activity: 1582
Merit: 759
Does not blockchain.info directly offer this API for multi-send ?
My thoughts exactly, what's wrong with just using the API directly?
Code:
https://blockchain.info/merchant/$guid/sendmany?password=$main_password&second_password=$second_password&recipients=$recipients&shared=$shared&fee=$fee

This script is intended to be used for callbacks.

The specific use case for the client who requested this script was to make a forwarding address. Specifically, where when a specific address receives a transaction, the amount is split and sent to multiple other addresses based on a percentage value. This whole process happening automatically and without delay (with the availability for confirmation delay).
full member
Activity: 151
Merit: 100
Does not blockchain.info directly offer this API for multi-send ?
My thoughts exactly, what's wrong with just using the API directly?
Code:
https://blockchain.info/merchant/$guid/sendmany?password=$main_password&second_password=$second_password&recipients=$recipients&shared=$shared&fee=$fee
legendary
Activity: 2394
Merit: 1216
The revolution will be digital
Does not blockchain.info directly offer this API for multi-send ?
hero member
Activity: 1582
Merit: 759
Also, to note. It is better to utilize allow_url_fopen within your php.ini configuration.

The script does support curl but is untested.
hero member
Activity: 1582
Merit: 759
Bitcoin Transaction Splitting Script

I recently created a script for the splitting of Bitcoin transactions based off the BlockChain.info API for cooldgamer (https://bitcointalksearch.org/user/cooldgamer-79720).

Within the middle of the messages, he requested and asked if the script could be licensed as open source; and as such, here we are! Thank you to cooldgamer for providing the bounty.

This script uses the BlockChain.info API to split Bitcoin Transactions to a Bitcoin Address based off a certain percentage.

For example, you can send 1 Bitcoin to ADDRESS1
and you can have it setup to split the transaction to send:
.4 Bitcoins to ADDRESS2 (40%)
.2 Bitcoins to ADDRESS3 (20%)
.05 Bitcoins to ADDRESS4 (5%)
.35 Bitcoins to ADDRESS5 (35%)

It works with any amount of outputs and includes fee calculation (w/ custom fee (optional)).

Obviously, a fair warning: This script is a tad bit messy. It works, but I recommend testing the script on a smaller scale before production use. It has and is being used within production for certain users already.
I am not responsible for any lost funds or any loss whatsoever by the use of this script whether in production or development.

The script is located on Github.


Read readme.md for installation and setup instructions.

If you wish to be so kind to donate, you can send donations to :
16E4K1oDxefRAbLGS2Fh42C4SXgZMjeL3i

Thank you,
Initscri
Jump to: