GithubHelp home page GithubHelp logo

txtool's Introduction

Build bitcoin transactions
--------------------------
Usage: cosign [options] COMMAND [command parameters]

Options:
  -f, --file  Load/store transaction state to/from FILE


Theory of operation
-------------------
All operation revolves around an internal database, which is modified
via execution of a command operation:
	1. cosign reads transaction state file (JSON). Default "txstatedb.json".
	2. cosign executes command given on command line,
	   updating transaction state.
	3. cosign writes transaction state file, overwriting
	   previous version.

"transaction state" is anything involving the given transaction being
built, examined or modified.

A session begins when a new database is initialized, using the "init"
command.


Dependencies
------------
node.js			-- http://nodejs.org/

node modules ("npm install $module_name"):
	optimist
	libcoin		-- https://github.com/gasteve/node-libcoin


cosign command summary
----------------------

If the command notes "(RPC)", that indicates bitcoind wallet and RPC are used.
If the command notes "(JSON)", that indicates a local, AES-encrypted
JSON wallet file is used.

clean
	Remove transaction state database, and any associated
	temporary files.

dump
	Inspect transaction state database.

help
	List this command summary.

init
	Initialize new transaction state database.

inputs TXID1 VOUT1 TXID2 VOUT2...
	Raw transaction building.  Append to list of TX inputs.

inputs.clear
	Clear list of TX inputs.

multisig N-REQUIRED KEY1 KEY2 KEY3...
	Begin new multi-sig tx

nreq N-REQUIRED
	Specify number of sigs required for a multisig tx

outputs ADDRESS1 VALUE1 ADDRESS2 VALUE2...
	Raw transaction building.  Append to list of TX outputs.

outputs.clear
	Clear list of TX outputs.

pubkey.get ADDRESS

	Obtain full pubkey, given bitcoin address (pubkey hash),
	from bitcoind wallet (RPC) or local wallet file (JSON).

pubkeys KEY1 KEY2 KEY3...
	Append to list of pubkeys / bitcoin addresses

pubkeys.clear
	Clear list of pubkeys.

raw SERIALIZED-TX
	Input serialized transaction from command line

raw.append FILE
	Append FILE to in-memory serialized transaction data.

raw.clear
	Clear serialized tx data.

raw.create
	create raw transaction, given inputs and outputs.

raw.decode
	(RPC) decode raw transaction to readable JSON object.

raw.get TXID
	(RPC) get raw transaction, given hash txid.

raw.read FILE
	Input serialized transaction from file.

raw.send
	(RPC) broadcast raw transaction to network,
	returning a transaction id.

raw.sign [anyonecanpay]
	(RPC) sign raw transaction, if possible.
	Uses keys in bitcoind's wallet.

	If the optional argument "anyonecanpay" is supplied,
	outputs are locked, but third party inputs may change.

raw.write FILE
	Output serialized transaction to file.

wallet.msig
	(RPC, JSON) Commit in-memory multisig data (N-Required, Keys)
	to wallet, returning a multisig payment address.


Encryption (walletpassphrase) note
----------------------------------
The user is expected to authenticate with bitcoind RPC prior to using
this tool, if this tool will require access to private keys for the
operation (e.g. signing).

txtool's People

Contributors

gasteve avatar

Stargazers

Leopard avatar  avatar Mutalisk avatar  avatar qor avatar  avatar Pana avatar  avatar Spock avatar  avatar Angus H. avatar Jon Vlachoyiannis avatar  avatar Rfh avatar Mostafa Farghaly avatar  avatar Jameson Lopp avatar Mike Qian avatar Michael Egorov avatar Sir Jeffrey Lebowski avatar Kawal Singh avatar Rick Windham avatar Khash  avatar Brian Bloomer avatar Joris Bontje avatar Jonathan Zernik avatar Dumitru Glavan avatar Sean avatar swein avatar Chris Williams avatar Jonas Anton Östman avatar Adam Gibson avatar Jon Lund Steffensen avatar Gaston Morixe avatar Jason Dreyzehner avatar Paulo Cesar avatar AYF avatar  avatar J. Scott Miller avatar Klaus Trainer avatar Gary Rowe avatar Paul Capestany avatar  avatar Eric Gallager avatar Antonin Hildebrand avatar

Watchers

Chris Yoder avatar  avatar J. Scott Miller avatar Paulo Cesar avatar Jeff Garzik avatar James Cloos avatar ModdersCentral avatar Kawal Singh avatar  avatar Sir Jeffrey Lebowski avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.