1BITCOIN-TX(1)                    User Commands                   BITCOIN-TX(1)
2
3
4

NAME

6       bitcoin-tx - manual page for bitcoin-tx v25.1.0
7

SYNOPSIS

9       bitcoin-tx  [options]  <hex-tx>  [commands]  Update hex-encoded bitcoin
10       transaction
11       bitcoin-tx [options] -create [commands]    Create  hex-encoded  bitcoin
12       transaction
13

DESCRIPTION

15       Bitcoin Core bitcoin-tx utility version v25.1.0
16

OPTIONS

18       -?
19
20              Print this help message and exit
21
22       -create
23
24              Create new, empty TX.
25
26       -json
27
28              Select JSON output
29
30       -txid
31
32              Output  only  the  hex-encoded  transaction  id of the resultant
33              transaction.
34
35       -version
36
37              Print version and exit
38
39       Debugging/Testing options:
40
41       Chain selection options:
42
43       -chain=<chain>
44
45              Use the chain <chain> (default:  main).  Allowed  values:  main,
46              test, signet, regtest
47
48       -signet
49
50              Use the signet chain. Equivalent to -chain=signet. Note that the
51              network is defined by the -signetchallenge parameter
52
53       -signetchallenge
54
55              Blocks must satisfy the given  script  to  be  considered  valid
56              (only for signet networks; defaults to the global default signet
57              test network challenge)
58
59       -signetseednode
60
61              Specify a seed  node  for  the  signet  network,  in  the  host‐
62              name[:port]  format,  e.g.  sig.net:1234  (may  be used multiple
63              times to specify multiple seed nodes; defaults to the global de‐
64              fault signet test network seed node(s))
65
66       -testnet
67
68              Use the test chain. Equivalent to -chain=test.
69
70       Commands:
71
72              delin=N
73
74              Delete input N from TX
75
76              delout=N
77
78              Delete output N from TX
79
80              in=TXID:VOUT(:SEQUENCE_NUMBER)
81
82              Add input to TX
83
84              locktime=N
85
86              Set TX lock time to N
87
88              nversion=N
89
90              Set TX version to N
91
92              outaddr=VALUE:ADDRESS
93
94              Add address-based output to TX
95
96              outdata=[VALUE:]DATA
97
98              Add data-based output to TX
99
100              outmultisig=VALUE:REQUIRED:PUBKEYS:PUBKEY1:PUBKEY2:....[:FLAGS]
101
102              Add Pay To n-of-m Multi-sig output to TX. n = REQUIRED, m = PUB‐
103              KEYS.  Optionally add the "W"  flag  to  produce  a  pay-to-wit‐
104              ness-script-hash output. Optionally add the "S" flag to wrap the
105              output in a pay-to-script-hash.
106
107              outpubkey=VALUE:PUBKEY[:FLAGS]
108
109              Add pay-to-pubkey output to TX. Optionally add the "W"  flag  to
110              produce  a pay-to-witness-pubkey-hash output. Optionally add the
111              "S" flag to wrap the output in a pay-to-script-hash.
112
113              outscript=VALUE:SCRIPT[:FLAGS]
114
115              Add raw script output to TX. Optionally add the "W" flag to pro‐
116              duce a pay-to-witness-script-hash output. Optionally add the "S"
117              flag to wrap the output in a pay-to-script-hash.
118
119              replaceable(=N)
120
121              Set RBF opt-in sequence number for input  N  (if  not  provided,
122              opt-in all available inputs)
123
124              sign=SIGHASH-FLAGS
125
126              Add  zero  or  more  signatures to transaction. This command re‐
127              quires JSON registers:prevtxs=JSON object, privatekeys=JSON  ob‐
128              ject.  See  signrawtransactionwithkey docs for format of sighash
129              flags, JSON objects.
130
131       Register Commands:
132
133              load=NAME:FILENAME
134
135              Load JSON file FILENAME into register NAME
136
137              set=NAME:JSON-STRING
138
139              Set register NAME to given JSON-STRING
140
142       Copyright (C) 2009-2023 The Bitcoin Core developers
143
144       Please contribute if you find Bitcoin Core useful. Visit  <https://bit
145       coincore.org/>  for further information about the software.  The source
146       code is available from <https://github.com/bitcoin/bitcoin>.
147
148       This is experimental software.  Distributed under the MIT software  li‐
149       cense, see the accompanying file COPYING or <https://opensource.org/li
150       censes/MIT>
151
152
153
154bitcoin-tx v25.1.0               October 2023                    BITCOIN-TX(1)
Impressum