2020-11-18 10:43:15 +01:00
|
|
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13.
|
2021-01-03 16:14:26 +01:00
|
|
|
.TH BITCOIN-TX "1" "January 2021" "bitcoin-tx v0.21.0.0" "User Commands"
|
2016-09-01 16:36:38 +02:00
|
|
|
.SH NAME
|
2020-11-18 10:43:15 +01:00
|
|
|
bitcoin-tx \- manual page for bitcoin-tx v0.21.0.0
|
2018-12-29 10:22:49 +01:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B bitcoin-tx
|
|
|
|
[\fI\,options\/\fR] \fI\,<hex-tx> \/\fR[\fI\,commands\/\fR] \fI\,Update hex-encoded bitcoin transaction\/\fR
|
|
|
|
.br
|
|
|
|
.B bitcoin-tx
|
|
|
|
[\fI\,options\/\fR] \fI\,-create \/\fR[\fI\,commands\/\fR] \fI\,Create hex-encoded bitcoin transaction\/\fR
|
2016-09-01 16:36:38 +02:00
|
|
|
.SH DESCRIPTION
|
2020-11-18 10:43:15 +01:00
|
|
|
Bitcoin Core bitcoin\-tx utility version v0.21.0.0
|
2016-09-01 16:36:38 +02:00
|
|
|
.SH OPTIONS
|
|
|
|
.HP
|
|
|
|
\-?
|
|
|
|
.IP
|
2019-02-06 19:57:52 +01:00
|
|
|
Print this help message and exit
|
2016-09-01 16:36:38 +02:00
|
|
|
.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
|
2020-11-18 10:43:15 +01:00
|
|
|
Debugging/Testing options:
|
|
|
|
.PP
|
2016-09-01 16:36:38 +02:00
|
|
|
Chain selection options:
|
|
|
|
.HP
|
2020-11-18 10:43:15 +01:00
|
|
|
\fB\-chain=\fR<chain>
|
|
|
|
.IP
|
|
|
|
Use the chain <chain> (default: main). Allowed values: main, test,
|
|
|
|
signet, regtest
|
|
|
|
.HP
|
|
|
|
\fB\-signet\fR
|
|
|
|
.IP
|
|
|
|
Use the signet chain. Equivalent to \fB\-chain\fR=\fI\,signet\/\fR. Note that the network
|
|
|
|
is defined by the \fB\-signetchallenge\fR parameter
|
|
|
|
.HP
|
|
|
|
\fB\-signetchallenge\fR
|
|
|
|
.IP
|
|
|
|
Blocks must satisfy the given script to be considered valid (only for
|
|
|
|
signet networks; defaults to the global default signet test
|
|
|
|
network challenge)
|
|
|
|
.HP
|
|
|
|
\fB\-signetseednode\fR
|
|
|
|
.IP
|
|
|
|
Specify a seed node for the signet network, in the hostname[:port]
|
|
|
|
format, e.g. sig.net:1234 (may be used multiple times to specify
|
|
|
|
multiple seed nodes; defaults to the global default signet test
|
|
|
|
network seed node(s))
|
|
|
|
.HP
|
2016-09-01 16:36:38 +02:00
|
|
|
\fB\-testnet\fR
|
|
|
|
.IP
|
2020-11-18 10:43:15 +01:00
|
|
|
Use the test chain. Equivalent to \fB\-chain\fR=\fI\,test\/\fR.
|
2016-09-01 16:36:38 +02:00
|
|
|
.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
|
2018-07-27 00:39:42 +02:00
|
|
|
outdata=[VALUE:]DATA
|
|
|
|
.IP
|
|
|
|
Add data\-based output to TX
|
|
|
|
.IP
|
|
|
|
outmultisig=VALUE:REQUIRED:PUBKEYS:PUBKEY1:PUBKEY2:....[:FLAGS]
|
|
|
|
.IP
|
|
|
|
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.
|
|
|
|
.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
|
|
|
|
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
|
2018-07-27 00:39:42 +02:00
|
|
|
replaceable(=N)
|
2016-09-01 16:36:38 +02:00
|
|
|
.IP
|
2018-07-27 00:39:42 +02:00
|
|
|
Set RBF opt\-in sequence number for input N (if not provided, opt\-in all
|
|
|
|
available inputs)
|
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
|
2019-02-06 16:20:28 +01:00
|
|
|
signrawtransactionwithkey docs for format of sighash flags, JSON
|
2016-09-01 16:36:38 +02:00
|
|
|
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
|
2020-11-18 10:43:15 +01:00
|
|
|
Copyright (C) 2009-2020 The Bitcoin Core developers
|
2016-09-01 16:36:38 +02:00
|
|
|
|
|
|
|
Please contribute if you find Bitcoin Core useful. Visit
|
2020-11-18 10:43:15 +01:00
|
|
|
<https://bitcoincore.org/> for further information about the software.
|
2016-09-01 16:36:38 +02:00
|
|
|
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>
|