2017-02-17 18:21:18 +01:00
|
|
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4.
|
|
|
|
.TH BITCOIN-TX "1" "February 2017" "bitcoin-tx v0.14.99.0" "User Commands"
|
2016-09-01 16:36:38 +02:00
|
|
|
.SH NAME
|
2017-02-17 18:21:18 +01:00
|
|
|
bitcoin-tx \- manual page for bitcoin-tx v0.14.99.0
|
2016-09-01 16:36:38 +02:00
|
|
|
.SH DESCRIPTION
|
2017-02-17 18:21:18 +01:00
|
|
|
Bitcoin Core bitcoin\-tx utility version v0.14.99.0
|
2016-09-01 16:36:38 +02:00
|
|
|
.SS "Usage:"
|
|
|
|
.TP
|
|
|
|
bitcoin\-tx [options] <hex\-tx> [commands]
|
|
|
|
Update hex\-encoded bitcoin transaction
|
|
|
|
.TP
|
|
|
|
bitcoin\-tx [options] \fB\-create\fR [commands]
|
|
|
|
Create hex\-encoded bitcoin transaction
|
|
|
|
.SH OPTIONS
|
|
|
|
.HP
|
|
|
|
\-?
|
|
|
|
.IP
|
|
|
|
This help message
|
|
|
|
.HP
|
|
|
|
\fB\-create\fR
|
|
|
|
.IP
|
|
|
|
Create new, empty TX.
|
|
|
|
.HP
|
|
|
|
\fB\-json\fR
|
|
|
|
.IP
|
|
|
|
Select JSON output
|
|
|
|
.HP
|
|
|
|
\fB\-txid\fR
|
|
|
|
.IP
|
|
|
|
Output only the hex\-encoded transaction id of the resultant transaction.
|
|
|
|
.PP
|
|
|
|
Chain selection options:
|
|
|
|
.HP
|
|
|
|
\fB\-testnet\fR
|
|
|
|
.IP
|
|
|
|
Use the test chain
|
|
|
|
.HP
|
|
|
|
\fB\-regtest\fR
|
|
|
|
.IP
|
|
|
|
Enter regression test mode, which uses a special chain in which blocks
|
|
|
|
can be solved instantly. This is intended for regression testing
|
|
|
|
tools and app development.
|
|
|
|
.PP
|
|
|
|
Commands:
|
|
|
|
.IP
|
|
|
|
delin=N
|
|
|
|
.IP
|
|
|
|
Delete input N from TX
|
|
|
|
.IP
|
|
|
|
delout=N
|
|
|
|
.IP
|
|
|
|
Delete output N from TX
|
|
|
|
.IP
|
|
|
|
in=TXID:VOUT(:SEQUENCE_NUMBER)
|
|
|
|
.IP
|
|
|
|
Add input to TX
|
|
|
|
.IP
|
|
|
|
locktime=N
|
|
|
|
.IP
|
|
|
|
Set TX lock time to N
|
|
|
|
.IP
|
|
|
|
nversion=N
|
|
|
|
.IP
|
|
|
|
Set TX version to N
|
|
|
|
.IP
|
|
|
|
outaddr=VALUE:ADDRESS
|
|
|
|
.IP
|
|
|
|
Add address\-based output to TX
|
|
|
|
.IP
|
2017-02-17 18:21:18 +01:00
|
|
|
outpubkey=VALUE:PUBKEY[:FLAGS]
|
|
|
|
.IP
|
|
|
|
Add pay\-to\-pubkey output to TX. Optionally add the "W" flag to produce a
|
|
|
|
pay\-to\-witness\-pubkey\-hash output. Optionally add the "S" flag to
|
|
|
|
wrap the output in a pay\-to\-script\-hash.
|
|
|
|
.IP
|
2016-09-01 16:36:38 +02:00
|
|
|
outdata=[VALUE:]DATA
|
|
|
|
.IP
|
|
|
|
Add data\-based output to TX
|
|
|
|
.IP
|
2017-02-17 18:21:18 +01:00
|
|
|
outscript=VALUE:SCRIPT[:FLAGS]
|
|
|
|
.IP
|
|
|
|
Add raw script output to TX. Optionally add the "W" flag to produce a
|
|
|
|
pay\-to\-witness\-script\-hash output. Optionally add the "S" flag to
|
|
|
|
wrap the output in a pay\-to\-script\-hash.
|
|
|
|
.IP
|
|
|
|
outmultisig=VALUE:REQUIRED:PUBKEYS:PUBKEY1:PUBKEY2:....[:FLAGS]
|
2016-09-01 16:36:38 +02:00
|
|
|
.IP
|
2017-02-17 18:21:18 +01:00
|
|
|
Add Pay To n\-of\-m Multi\-sig output to TX. n = REQUIRED, m = PUBKEYS.
|
|
|
|
Optionally add the "W" flag to produce a
|
|
|
|
pay\-to\-witness\-script\-hash output. Optionally add the "S" flag to
|
|
|
|
wrap the output in a pay\-to\-script\-hash.
|
2016-09-01 16:36:38 +02:00
|
|
|
.IP
|
|
|
|
sign=SIGHASH\-FLAGS
|
|
|
|
.IP
|
|
|
|
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.
|
|
|
|
.PP
|
|
|
|
Register Commands:
|
|
|
|
.IP
|
|
|
|
load=NAME:FILENAME
|
|
|
|
.IP
|
|
|
|
Load JSON file FILENAME into register NAME
|
|
|
|
.IP
|
|
|
|
set=NAME:JSON\-STRING
|
|
|
|
.IP
|
|
|
|
Set register NAME to given JSON\-STRING
|
|
|
|
.SH COPYRIGHT
|
2017-02-17 18:21:18 +01:00
|
|
|
Copyright (C) 2009-2017 The Bitcoin Core developers
|
2016-09-01 16:36:38 +02:00
|
|
|
|
|
|
|
Please contribute if you find Bitcoin Core useful. Visit
|
|
|
|
<https://bitcoincore.org> for further information about the software.
|
|
|
|
The source code is available from <https://github.com/bitcoin/bitcoin>.
|
|
|
|
|
|
|
|
This is experimental software.
|
|
|
|
Distributed under the MIT software license, see the accompanying file COPYING
|
2017-02-17 18:21:18 +01:00
|
|
|
or <https://opensource.org/licenses/MIT>
|
2016-09-01 16:36:38 +02:00
|
|
|
|
|
|
|
This product includes software developed by the OpenSSL Project for use in the
|
2017-02-17 18:21:18 +01:00
|
|
|
OpenSSL Toolkit <https://www.openssl.org> and cryptographic software written by
|
|
|
|
Eric Young and UPnP software written by Thomas Bernard.
|