Bitcoin Forum
May 05, 2024, 06:17:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there a way to automatically forward received coins to multiple addresses?  (Read 263 times)
StackGambler (OP)
Full Member
***
Offline Offline

Activity: 434
Merit: 101

YouTuber, gambler, and scam-buster.


View Profile
March 21, 2019, 09:21:46 AM
 #1

I'm looking for a way to receive a single payment to one address, and have portions of it automatically forwarded to other predefined addresses.

For example:

I predefine 10% of my payments go to address A, 60% to address B and 30% to address C. Then, when someone sends 2 BTC to the main address, from the main address, 0.2 BTC automatically goes to address A, 1.2 BTC automatically goes to address B and 0.6 BTC automatically goes to address C.

Is this possible yet? If so, how would one execute this? Thank you.

I like gambling. Probably currently trying to figure out how to pay next month's rent.
1714889840
Hero Member
*
Offline Offline

Posts: 1714889840

View Profile Personal Message (Offline)

Ignore
1714889840
Reply with quote  #2

1714889840
Report to moderator
1714889840
Hero Member
*
Offline Offline

Posts: 1714889840

View Profile Personal Message (Offline)

Ignore
1714889840
Reply with quote  #2

1714889840
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714889840
Hero Member
*
Offline Offline

Posts: 1714889840

View Profile Personal Message (Offline)

Ignore
1714889840
Reply with quote  #2

1714889840
Report to moderator
HeRetiK
Legendary
*
Offline Offline

Activity: 2926
Merit: 2091


Cashback 15%


View Profile
March 21, 2019, 09:32:33 AM
Merited by StackGambler (2), AB de Royse777 (1)
 #2

Your best bet is probably to run either a Bitcoin Core node or an Electrum instance and use their respective JSON-RPC APIs to create the logic you are looking for.

Here's the list of API calls for Electrum:
http://docs.electrum.org/en/latest/protocol.html

Here's the list of API calls for Bitcoin Core:
https://bitcoin.org/en/developer-reference#bitcoin-core-apis

For the latter here's a list of a few wrappers for various programming languages:
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
StackGambler (OP)
Full Member
***
Offline Offline

Activity: 434
Merit: 101

YouTuber, gambler, and scam-buster.


View Profile
March 21, 2019, 10:48:34 AM
 #3

Your best bet is probably to run either a Bitcoin Core node or an Electrum instance and use their respective JSON-RPC APIs to create the logic you are looking for.

Here's the list of API calls for Electrum:
http://docs.electrum.org/en/latest/protocol.html

Here's the list of API calls for Bitcoin Core:
https://bitcoin.org/en/developer-reference#bitcoin-core-apis

For the latter here's a list of a few wrappers for various programming languages:
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)

Thanks! I do have a full node. Maybe I can pay someone to code it up. If someone is interested in coding this for me, they can PM me. I am also still wondering if there's an out-of-the-box solution for this.

I like gambling. Probably currently trying to figure out how to pay next month's rent.
buwaytress
Legendary
*
Offline Offline

Activity: 2800
Merit: 3443


Join the world-leading crypto sportsbook NOW!


View Profile
March 21, 2019, 01:03:17 PM
 #4

Never thought of it for individual use but am pretty sure some of the enterprise solutions have this. I've noticed how exchanges especially almost automatically seem to consolidate deposits. Practically, as soon as my deposits are confirmed on LBC, for example, they're whisked off out of my deposit address, no matter the amount. I assume there's some coding that automatically either consolidates smaller deposits, or uses large deposits to process batches of withdrawals, all triggered by amounts.

Not saying you should get those solutions, but pretty sure if you reached out to some of those wallet providers there's a route there.

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
March 21, 2019, 07:24:06 PM
 #5

Thanks! I do have a full node. Maybe I can pay someone to code it up. If someone is interested in coding this for me, they can PM me. I am also still wondering if there's an out-of-the-box solution for this.

Why not try this one Bitcoin-Autosend

It's a simple program that you can use to automate sending bitcoin to address you want and it seems you need a Linux Based OS and Python to make this thing work.

Another one is this one Auto-Send by Kaz Wesley I don't know how safe it is but it seems the developer is active on GitHub and I think you can request to him to help you about autosend bitcoin to multiple addresses.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
poordeveloper
Hero Member
*****
Offline Offline

Activity: 896
Merit: 527


₿₿₿₿₿₿₿


View Profile WWW
March 21, 2019, 09:57:37 PM
 #6

The solution for this is integration with your address management system through a ZeroMQ instance, using the provided Bitcoin Core options:
Quote
ZeroMQ notification options:
-zmqpubhashblock=<address>   Enable publish hash block in <address>
-zmqpubhashtx=<address>   Enable publish hash transaction in <address>
-zmqpubrawblock=<address>   Enable publish raw block in <address>
-zmqpubrawtx=<address>   Enable publish raw transaction in <address>
This is part of the normal options you can use when running bitcoind or bitcoin-qt, available at https://en.bitcoin.it/wiki/Running_Bitcoin

🎰 Bitcoin Casinos ⭐⭐⭐⭐⭐
.
🔵 Buy Bitcoin (Visa / Mastercard / SEPA / Bank Transfer / Western Union / MoneyGram / RIA)
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!