Usage:
bitcoin-tx [options]
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