Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: rico666 on March 14, 2017, 12:51:53 PM



Title: need CLI script (Linux) to perform 1:n transactions w/o local blockchain
Post by: rico666 on March 14, 2017, 12:51:53 PM
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


Title: Re: need CLI script (Linux) to perform 1:n transactions w/o local blockchain
Post by: achow101 on March 14, 2017, 05:31:40 PM
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.


Title: Re: need CLI script (Linux) to perform 1:n transactions w/o local blockchain
Post by: rico666 on March 15, 2017, 09:35:12 AM
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


Title: Re: need CLI script (Linux) to perform 1:n transactions w/o local blockchain
Post by: nemgun on March 15, 2017, 11:26:50 AM
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.


Title: Re: need CLI script (Linux) to perform 1:n transactions w/o local blockchain
Post by: Reynaldo on March 17, 2017, 06:30:47 PM
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.