Bitcoin Forum
May 13, 2024, 02:44:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A script to forward btc to a consolidated address?  (Read 1304 times)
sbtctalk (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
December 17, 2015, 05:59:06 AM
 #1

I currently have 3 addresses that is receiving payment for mining and cloud mining. I used 3 addresses so i could monitor if payment comes through. I hold the private keys for these addresses.

I am thinking of writing a script to auto forward all payments received to a single address every X hours.

Can any pros give ideas how should I begin? What should I read up on? Any specific api?

I have IT background and some development background which I neglected in recent years. It has become a side hobby rather than a profession.

13Sk3gsQ1ogrzmyt3xMVvByxcUvZr98kKN
1715611475
Hero Member
*
Offline Offline

Posts: 1715611475

View Profile Personal Message (Offline)

Ignore
1715611475
Reply with quote  #2

1715611475
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715611475
Hero Member
*
Offline Offline

Posts: 1715611475

View Profile Personal Message (Offline)

Ignore
1715611475
Reply with quote  #2

1715611475
Report to moderator
1715611475
Hero Member
*
Offline Offline

Posts: 1715611475

View Profile Personal Message (Offline)

Ignore
1715611475
Reply with quote  #2

1715611475
Report to moderator
1715611475
Hero Member
*
Offline Offline

Posts: 1715611475

View Profile Personal Message (Offline)

Ignore
1715611475
Reply with quote  #2

1715611475
Report to moderator
Soros Shorts
Donator
Legendary
*
Offline Offline

Activity: 1617
Merit: 1012



View Profile
December 17, 2015, 07:19:43 AM
Merited by ABCbits (1)
 #2

If you are using the bitcoin core wallet there is the JSON API that you can use from almost any language.

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

https://bitcoin.org/en/developer-reference
sbtctalk (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
December 17, 2015, 08:50:47 AM
 #3

If you are using the bitcoin core wallet there is the JSON API that you can use from almost any language.

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

https://bitcoin.org/en/developer-reference

Thanks. So its inevitable i have to run a bitcoind and host a node?

13Sk3gsQ1ogrzmyt3xMVvByxcUvZr98kKN
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
December 17, 2015, 11:48:32 AM
Merited by ABCbits (2)
 #4

Thanks. So its inevitable i have to run a bitcoind and host a node?

No.  There are services such as blockchain.info and coinbase.com that provide an API interface as well.

I suppose the real question is, why bother forwarding the bitcoins to a separate address?  What are you trying to accomplish?  Why not simply leave the bitcoins where you receive them until you are ready to spend them?
defaced
Legendary
*
Offline Offline

Activity: 2184
Merit: 1011


Franko is Freedom


View Profile WWW
December 18, 2015, 01:31:14 AM
 #5

Seems like he wants to make a hotwallet -> cold wallet automated.

Fortune Favors the Brave
Borderless CharityEXPANSEEXRAllergy FinderFranko Is Freedom
sbtctalk (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
December 18, 2015, 04:57:41 AM
 #6

Hi experts.

Yes. One reason is to build an offline address or cold wallet. But this may not the best approach.

Another reason is to find a reason to fire up my IDE again. Lol Smiley

I will read the api over the weekend.

13Sk3gsQ1ogrzmyt3xMVvByxcUvZr98kKN
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
December 21, 2015, 01:59:37 PM
 #7

If you know java, you can write an own forwarder.
here is a starting point:
https://github.com/bitcoinj/bitcoinj/blob/master/examples/src/main/java/org/bitcoinj/examples/ForwardingService.java
sbtctalk (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
December 23, 2015, 01:21:13 PM
 #8


Great! Thank you!

Smiley

13Sk3gsQ1ogrzmyt3xMVvByxcUvZr98kKN
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!