Bitcoin Forum
May 13, 2024, 09:19:22 AM *
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
1715591962
Hero Member
*
Offline Offline

Posts: 1715591962

View Profile Personal Message (Offline)

Ignore
1715591962
Reply with quote  #2

1715591962
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
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!