Bitcoin Forum
May 27, 2024, 06:42:32 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Payment Options - Send to multiple addresses  (Read 772 times)
BitCPrincess (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
January 17, 2015, 02:54:06 AM
 #1

Hello,

Our business is in the process of accepting Bitcoin, We would however like to have the Bitcoin sent to multiple addresses once the customer sends their funds.

For example...

customers sends 1.2 BTC to newly created address (N ADDRESS)

Once sent

0.7 goes to (X ADDRESS)
0.5 goes to (Y ADDRESS)

Is there a way to do this or any payment processor we can go with?

I know this is most likely a simple solution but we have no real experience using Bitcoin technology only what we have read and what one of our "Technical" guys personal experience is with it.

Thanks for any help.

BitCPrincess
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
January 17, 2015, 07:25:20 AM
 #2

I haven't used but I think Coinsplit.io is good for splitting the BTC or you can create a BTC-forwarding script, something like this:

Quote from: bitcoin.stackexchange.com/questions/12280/how-automatically-to-forward-bitcoins-from-one-address-to-another
You may use /etc/crontab on your Ubuntu:

Code:
* * * * * root /bin/bash /usr/local/bin/bitcoin_resender

And script shall looks like:

Code:
$ cat /usr/local/bin/bitcoin_resender
#!/bin/bash
if [ $(echo "$(bitcoind getbalance) > 0" | bc) -eq 1 ];then
      bitcoind sendtoaddress YOUR_NEW_ADDRESS $(bitcoind getbalance) "Comment for resender"
fi

It will check every minutes your bitcoind balance and resend each bitcoins to YOUR_NEW_ADDRESS.

Your probably need to check the fee.

You can also use Bitcoind for this too.

References:

1) Automated payment system
2) Original Bitcoin client/API calls list
3) API reference (JSON-RPC)

   ~~MZ~~

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!