Bitcoin Forum
November 16, 2024, 01:34:16 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   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 831 times)
rico666 (OP)
Legendary
*
Offline Offline

Activity: 1120
Merit: 1037


฿ → ∞


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
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


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 (OP)
Legendary
*
Offline Offline

Activity: 1120
Merit: 1037


฿ → ∞


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: 882
Merit: 533



View Profile WWW
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:  

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