Merge #11877: Improve createrawtransaction functional tests
[bitcoinplatinum.git] / doc / man / bitcoin-tx.1
blob8b72fbde0505d54f3403ca14484e0d180a6319ec
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.4.
2 .TH BITCOIN-TX "1" "September 2017" "bitcoin-tx v0.15.99.0" "User Commands"
3 .SH NAME
4 bitcoin-tx \- manual page for bitcoin-tx v0.15.99.0
5 .SH DESCRIPTION
6 Bitcoin Core bitcoin\-tx utility version v0.15.99.0
7 .SS "Usage:"
8 .TP
9 bitcoin\-tx [options] <hex\-tx> [commands]
10 Update hex\-encoded bitcoin transaction
11 .TP
12 bitcoin\-tx [options] \fB\-create\fR [commands]
13 Create hex\-encoded bitcoin transaction
14 .SH OPTIONS
15 .HP
16 \-?
17 .IP
18 This help message
19 .HP
20 \fB\-create\fR
21 .IP
22 Create new, empty TX.
23 .HP
24 \fB\-json\fR
25 .IP
26 Select JSON output
27 .HP
28 \fB\-txid\fR
29 .IP
30 Output only the hex\-encoded transaction id of the resultant transaction.
31 .PP
32 Chain selection options:
33 .HP
34 \fB\-testnet\fR
35 .IP
36 Use the test chain
37 .HP
38 \fB\-regtest\fR
39 .IP
40 Enter regression test mode, which uses a special chain in which blocks
41 can be solved instantly. This is intended for regression testing
42 tools and app development.
43 .PP
44 Commands:
45 .IP
46 delin=N
47 .IP
48 Delete input N from TX
49 .IP
50 delout=N
51 .IP
52 Delete output N from TX
53 .IP
54 in=TXID:VOUT(:SEQUENCE_NUMBER)
55 .IP
56 Add input to TX
57 .IP
58 locktime=N
59 .IP
60 Set TX lock time to N
61 .IP
62 nversion=N
63 .IP
64 Set TX version to N
65 .IP
66 replaceable(=N)
67 .IP
68 Set RBF opt\-in sequence number for input N (if not provided, opt\-in all
69 available inputs)
70 .IP
71 outaddr=VALUE:ADDRESS
72 .IP
73 Add address\-based output to TX
74 .IP
75 outpubkey=VALUE:PUBKEY[:FLAGS]
76 .IP
77 Add pay\-to\-pubkey output to TX. Optionally add the "W" flag to produce a
78 pay\-to\-witness\-pubkey\-hash output. Optionally add the "S" flag to
79 wrap the output in a pay\-to\-script\-hash.
80 .IP
81 outdata=[VALUE:]DATA
82 .IP
83 Add data\-based output to TX
84 .IP
85 outscript=VALUE:SCRIPT[:FLAGS]
86 .IP
87 Add raw script output to TX. Optionally add the "W" flag to produce a
88 pay\-to\-witness\-script\-hash output. Optionally add the "S" flag to
89 wrap the output in a pay\-to\-script\-hash.
90 .IP
91 outmultisig=VALUE:REQUIRED:PUBKEYS:PUBKEY1:PUBKEY2:....[:FLAGS]
92 .IP
93 Add Pay To n\-of\-m Multi\-sig output to TX. n = REQUIRED, m = PUBKEYS.
94 Optionally add the "W" flag to produce a
95 pay\-to\-witness\-script\-hash output. Optionally add the "S" flag to
96 wrap the output in a pay\-to\-script\-hash.
97 .IP
98 sign=SIGHASH\-FLAGS
99 .IP
100 Add zero or more signatures to transaction. This command requires JSON
101 registers:prevtxs=JSON object, privatekeys=JSON object. See
102 signrawtransaction docs for format of sighash flags, JSON
103 objects.
105 Register Commands:
107 load=NAME:FILENAME
109 Load JSON file FILENAME into register NAME
111 set=NAME:JSON\-STRING
113 Set register NAME to given JSON\-STRING
114 .SH COPYRIGHT
115 Copyright (C) 2009-2017 The Bitcoin Core developers
117 Please contribute if you find Bitcoin Core useful. Visit
118 <https://bitcoincore.org> for further information about the software.
119 The source code is available from <https://github.com/bitcoin/bitcoin>.
121 This is experimental software.
122 Distributed under the MIT software license, see the accompanying file COPYING
123 or <https://opensource.org/licenses/MIT>
125 This product includes software developed by the OpenSSL Project for use in the
126 OpenSSL Toolkit <https://www.openssl.org> and cryptographic software written by
127 Eric Young and UPnP software written by Thomas Bernard.