Bitcoin Forum
June 18, 2019, 02:19:05 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: need CLI script (Linux) to perform 1:n transactions w/o local blockchain  (Read 693 times)
rico666
Legendary
*
Offline Offline

Activity: 1092
Merit: 1022


฿ → ∞


View Profile WWW
March 14, 2017, 12:51:53 PM
 #1

I'll need a way to perform transactions from one BTC address to N other BTC addresses.

Requirements/constraints:

 * the script should run on Linux and have a command line interface
 * should be slightly more high-level than bitcoin-cli - may be a wrapper
 * I do not have - nor want - a local blockchain
 * I do not want to use any external APIs


Ideally, I should be able to perform transactions similar to the puzzle transaction
https://blockchain.info/de/tx/08389f34c98c606322740c0be6a7125d9860bb8d5cb182c02f98461e5fa6cd15
or e.g. what pools like eligius.st do when the perform payouts to clients.

Suggestions?


Rico

all non self-referential signatures except mine are lame ... oh wait ...   ·  LBC Thread (News)  ·  Past BURST Activities
1560867545
Hero Member
*
Offline Offline

Posts: 1560867545

View Profile Personal Message (Offline)

Ignore
1560867545
Reply with quote  #2

1560867545
Report to moderator
1560867545
Hero Member
*
Offline Offline

Posts: 1560867545

View Profile Personal Message (Offline)

Ignore
1560867545
Reply with quote  #2

1560867545
Report to moderator
1560867545
Hero Member
*
Offline Offline

Posts: 1560867545

View Profile Personal Message (Offline)

Ignore
1560867545
Reply with quote  #2

1560867545
Report to moderator
Try The Brand New Ethereum Game
50 Last Players Also Win The Bank
Works On Any iOS/Android Device With Standard Browser
Join Us On Telegram To Get Notified When You Can Win
COLOR PIXELS
AND WIN
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1560867545
Hero Member
*
Offline Offline

Posts: 1560867545

View Profile Personal Message (Offline)

Ignore
1560867545
Reply with quote  #2

1560867545
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1792
Merit: 2459


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


View Profile WWW
March 14, 2017, 05:31:40 PM
 #2

That's fairly trivial to do (I think) but if you want it to also sign the transaction, then you will need access to the blockchain somehow. Either you as the user would have to input all of the necessary data (output script, txid, vout) or it needs to access the blockchain somehow to look up the data that it needs.

rico666
Legendary
*
Offline Offline

Activity: 1092
Merit: 1022


฿ → ∞


View Profile WWW
March 15, 2017, 09:35:12 AM
 #3

That's fairly trivial to do (I think) but if you want it to also sign the transaction, then you will need access to the blockchain somehow. Either you as the user would have to input all of the necessary data (output script, txid, vout) or it needs to access the blockchain somehow to look up the data that it needs.

Ok - but on the practical side: Can I have some pointers to existing solutions on github or similar?
That's what I hoped for. I could live with a (heavily) pruned blockchain on the machine running the script.


Rico

all non self-referential signatures except mine are lame ... oh wait ...   ·  LBC Thread (News)  ·  Past BURST Activities
nemgun
Hero Member
*****
Offline Offline

Activity: 644
Merit: 522



View Profile
March 15, 2017, 11:26:50 AM
 #4

That's fairly trivial to do (I think) but if you want it to also sign the transaction, then you will need access to the blockchain somehow. Either you as the user would have to input all of the necessary data (output script, txid, vout) or it needs to access the blockchain somehow to look up the data that it needs.

Ok - but on the practical side: Can I have some pointers to existing solutions on github or similar?
That's what I hoped for. I could live with a (heavily) pruned blockchain on the machine running the script.


Rico


you just need some basic bash/python/php/nodejs (or annother) and some imagination. You will then quickly find a solution to your problem, you could even do more. Eventually you will build a project around the script and release some nice new services.
Just download bitcoind, read some guides, and start developing using bitcoin, you will save a lot of time.


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


▀█▀
.
▄█▄


▀█▀
.
Reynaldo
Legendary
*
Offline Offline

Activity: 1144
Merit: 1000



View Profile
March 17, 2017, 06:30:47 PM
 #5

I think a good start would be looking into armory source code.. https://en.bitcoin.it/wiki/Armory
I know for sure that they do 1 to N transactions.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!