jgarzik
Legendary
Offline
Activity: 1554
Merit: 1001
|
 |
July 03, 2013, 04:15:45 PM |
|
URL: https://github.com/jgarzik/txtooltxtool is a command line tool written in node.js that interfaces with Bitcoin-Qt/bitcoind, to automate or assist in building interesting, unusual, complicated or just plain odd transactions. The goal is to demonstrate advanced bitcoin features, and make it easier for users to experiment. The intended audience has a basic awareness of how bitcoin transactions look and work. The theory of operation and full list of commands may be reviewed at https://github.com/jgarzik/txtool/blob/master/READMEInitially, two working examples are presented: Further examples such as decentralized crowdfunding and atomic coin swapping will be demonstrated soon.
|
Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own. Visit bloq.com / metronome.io Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
|
|
|
|
|
|
|
|
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
|
|
|
|
|
Remember remember the 5th of November
Legendary
Offline
Activity: 1750
Merit: 1001
Reverse engineer from time to time
|
 |
July 03, 2013, 05:11:04 PM |
|
Nodejs seems to be getting popular these days.
|
BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
|
|
|
bittheodds
Newbie
Offline
Activity: 12
Merit: 0
|
 |
July 03, 2013, 06:06:01 PM |
|
This is really, really cool. Thanks for making it available.
|
|
|
|
|
Mike Hearn
Legendary
Offline
Activity: 1526
Merit: 1006
|
 |
July 03, 2013, 07:05:53 PM |
|
Cool, awesome utility!
|
|
|
|
|
|
xeroc
|
 |
July 03, 2013, 07:11:53 PM |
|
great stuff .. was waiting for things like that ..
let's get started with crazy txs
|
|
|
|
|
|
fellowtraveler
|
 |
July 03, 2013, 08:28:10 PM |
|
Great work, and thanks very much.
jgarzik == great help/support for OT project :-)
|
|
|
|
|
Financisto
|
 |
July 03, 2013, 08:53:09 PM |
|
Very nice open source collaborative project.
Congratulations!
Keep up the good work
Cheers!
|
|
|
|
|
Steve
|
 |
July 04, 2013, 01:29:10 AM |
|
For non-nodejs people, you should now be able to install this as follows: a) install nodejs (from nodejs.org) b) run: $ npm install -g txtool
After that, you should be able run txtool from the shell: $ txtool
This installs the nodejs txtool package with all dependencies in your global nodejs environment and then creates a symlink to the executable in your $PATH (usually /usr/local/bin).
|
|
|
|
|
flibbr
|
 |
September 01, 2013, 12:54:59 PM |
|
Looks great, I'll give it a try later.
|
|
|
|
|
WSDN
|
 |
September 01, 2013, 02:37:42 PM |
|
Thanks for this excellent job!
|
|
|
|
jgarzik
Legendary
Offline
Activity: 1554
Merit: 1001
|
 |
September 12, 2013, 05:14:17 PM |
|
Warning: Please avoid using bitcoinj-based wallets, with this tool. The bitcoinj Java library does not support the P2SH feature ( BIP 16).
|
Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own. Visit bloq.com / metronome.io Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
|
|
|
KawalGrover
Newbie
Offline
Activity: 38
Merit: 0
|
 |
March 18, 2014, 10:12:47 PM |
|
For non-nodejs people, you should now be able to install this as follows: a) install nodejs (from nodejs.org) b) run: $ npm install -g txtool
After that, you should be able run txtool from the shell: $ txtool
This installs the nodejs txtool package with all dependencies in your global nodejs environment and then creates a symlink to the executable in your $PATH (usually /usr/local/bin).
It would be a good idea to put these instructions in the README on github. Will save non-nodejs people like me some time.  But that aside, thank you! This tool is aWeSoMe!!
|
|
|
|
|
techhead
Newbie
Offline
Activity: 4
Merit: 0
|
 |
March 18, 2014, 11:52:15 PM |
|
Thank you!
|
|
|
|
|
|
s2
|
 |
November 17, 2014, 12:46:49 PM |
|
Excellent work! Thanks for sharing as was getting stuck on this.
|
|
|
|
|
jgarzik
Legendary
Offline
Activity: 1554
Merit: 1001
|
 |
November 17, 2014, 03:10:48 PM |
|
Bitcoin Core now has "bitcoin-tx" which may be used in this manner. Command line summary: Bitcoin Core bitcoin-tx utility version v0.9.99.0-83f5daf
Usage: bitcoin-tx [options] <hex-tx> [commands] Update hex-encoded bitcoin transaction bitcoin-tx [options] -create [commands] Create hex-encoded bitcoin transaction
Options: -? This help message -create Create new, empty TX. -json Select JSON output -regtest Enter regression test mode, which uses a special chain in which blocks can be solved instantly. -testnet Use the test network
Commands: delin=N Delete input N from TX delout=N Delete output N from TX in=TXID:VOUT Add input to TX locktime=N Set TX lock time to N nversion=N Set TX version to N outaddr=VALUE:ADDRESS Add address-based output to TX outscript=VALUE:SCRIPT Add raw script output to TX sign=SIGHASH-FLAGS Add zero or more signatures to transaction This command requires JSON registers: prevtxs=JSON object privatekeys=JSON object See signrawtransaction docs for format of sighash flags, JSON objects.
Register Commands: load=NAME:FILENAME Load JSON file FILENAME into register NAME set=NAME:JSON-STRING Set register NAME to given JSON-STRING
|
Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own. Visit bloq.com / metronome.io Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
|
|
|
|