Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.2.TH BITCOIN-TX "1" "October 2026" "bitcoin-tx v32.1.0" "User Commands"3.SH NAME4bitcoin-tx \- manual page for bitcoin-tx v32.1.05.SH SYNOPSIS6.B bitcoin-tx7[\fI\,options\/\fR] \fI\,<hex-tx> \/\fR[\fI\,commands\/\fR]8.br9.B bitcoin-tx10[\fI\,options\/\fR] \fI\,-create \/\fR[\fI\,commands\/\fR]11.SH DESCRIPTION12Bitcoin Core bitcoin\-tx utility version v32.1.013.PP14The bitcoin\-tx tool is used for creating and modifying bitcoin transactions.15.PP16bitcoin\-tx can be used with "<hex\-tx> [commands]" to update a hex\-encoded bitcoin transaction, or with "\-create [commands]" to create a hex\-encoded bitcoin transaction.17.SH OPTIONS18.HP19\fB\-create\fR20.IP21Create new, empty TX.22.HP23\fB\-help\fR24.IP25Print this help message and exit (also \fB\-h\fR or \-?)26.HP27\fB\-json\fR28.IP29Select JSON output30.HP31\fB\-txid\fR32.IP33Output only the hex\-encoded transaction id of the resultant transaction.34.HP35\fB\-version\fR36.IP37Print version and exit38.PP39Debugging/Testing options:40.PP41Chain selection options:42.HP43\fB\-chain=\fR<chain>44.IP45Use the chain <chain> (default: main). Allowed values: main, test,46testnet4, signet, regtest47.HP48\fB\-signet\fR49.IP50Use the signet chain. Equivalent to \fB\-chain\fR=\fI\,signet\/\fR. Note that the network51is defined by the \fB\-signetchallenge\fR parameter52.HP53\fB\-signetchallenge\fR54.IP55Blocks must satisfy the given script to be considered valid (only for56signet networks; defaults to the global default signet test57network challenge)58.HP59\fB\-signetseednode\fR60.IP61Specify a seed node for the signet network, in the hostname[:port]62format, e.g. sig.net:1234 (may be used multiple times to specify63multiple seed nodes; defaults to the global default signet test64network seed node(s))65.HP66\fB\-testnet\fR67.IP68Use the testnet3 chain. Equivalent to \fB\-chain\fR=\fI\,test\/\fR. Support for testnet369is deprecated and will be removed in an upcoming release.70Consider moving to testnet4 now by using \fB\-testnet4\fR.71.HP72\fB\-testnet4\fR73.IP74Use the testnet4 chain. Equivalent to \fB\-chain\fR=\fI\,testnet4\/\fR.75.PP76Commands:77.IP78delin=N79.IP80Delete input N from TX81.IP82delout=N83.IP84Delete output N from TX85.IP86in=TXID:VOUT(:SEQUENCE_NUMBER)87.IP88Add input to TX89.IP90locktime=N91.IP92Set TX lock time to N93.IP94nversion=N95.IP96Set TX version to N97.IP98outaddr=VALUE:ADDRESS99.IP100Add address\-based output to TX101.IP102outdata=[VALUE:]DATA103.IP104Add data\-based output to TX105.IP106outmultisig=VALUE:REQUIRED:PUBKEYS:PUBKEY1:PUBKEY2:....[:FLAGS]107.IP108Add Pay To n\-of\-m Multi\-sig output to TX. n = REQUIRED, m = PUBKEYS.109Optionally add the "W" flag to produce a110pay\-to\-witness\-script\-hash output. Optionally add the "S" flag to111wrap the output in a pay\-to\-script\-hash.112.IP113outpubkey=VALUE:PUBKEY[:FLAGS]114.IP115Add pay\-to\-pubkey output to TX. Optionally add the "W" flag to produce a116pay\-to\-witness\-pubkey\-hash output. Optionally add the "S" flag to117wrap the output in a pay\-to\-script\-hash.118.IP119outscript=VALUE:SCRIPT[:FLAGS]120.IP121Add raw script output to TX. Optionally add the "W" flag to produce a122pay\-to\-witness\-script\-hash output. Optionally add the "S" flag to123wrap the output in a pay\-to\-script\-hash.124.IP125replaceable(=N)126.IP127Sets Replace\-By\-Fee (RBF) opt\-in sequence number for input N. If N is128not provided, the command attempts to opt\-in all available inputs129for RBF. If the transaction has no inputs, this option is130ignored.131.IP132sign=SIGHASH\-FLAGS133.IP134Add zero or more signatures to transaction. This command requires JSON135registers:prevtxs=JSON object, privatekeys=JSON object. See136signrawtransactionwithkey docs for format of sighash flags, JSON137objects.138.PP139Register Commands:140.IP141load=NAME:FILENAME142.IP143Load JSON file FILENAME into register NAME144.IP145set=NAME:JSON\-STRING146.IP147Set register NAME to given JSON\-STRING148.SH COPYRIGHT149Copyright (C) 2009-2026 The Bitcoin Core developers151Please contribute if you find Bitcoin Core useful. Visit152<https://bitcoincore.org/> for further information about the software.153The source code is available from <https://github.com/bitcoin/bitcoin>.155This is experimental software.156Distributed under the MIT software license, see the accompanying file COPYING157or <https://opensource.org/license/MIT>158.SH "SEE ALSO"159bitcoin(1), bitcoind(1), bitcoin-cli(1), bitcoin-tx(1), bitcoin-wallet(1), bitcoin-util(1), bitcoin-qt(1)
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.