BITCOIN-TX(1)

πŸ“¦ version 0.18.0, in nixpkgs unstable

πŸ’… bitcoin-tx β€” the manual, but make it make sense πŸ’…

okay so bestie, this is the official manual page for bitcoin-tx from v0.21.2.0 β€” it's a lil' User Commands situation and honestly it's giving utility belt energy. let me walk you through it fr fr πŸ’–


✨ NAME ✨

bitcoin-tx β€” manual page for bitcoin-tx v0.21.2.0

like, that's literally the whole name section. iconic of them tbh. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so there are exactly two ways to run this thing, and here they are:

bitcoin-tx [options] <hex-tx> [commands]  Update hex-encoded bitcoin
transaction
bitcoin-tx [options] -create [commands]   Create hex-encoded bitcoin
transaction

first one updates a hex-encoded bitcoin transaction, second one creates a hex-encoded bitcoin transaction. pick your fighter, bestie πŸ’…


🌸 DESCRIPTION 🌸

Bitcoin Core bitcoin-tx utility version v0.21.2.0

that's it. that's the whole description. no notes. ✨


πŸ‘‘ OPTIONS πŸ‘‘

okay here comes the good stuff, buckle up buttercup:

  • -? β€” Print this help message and exit. the classic "help me bestie" flag 🫢
  • -create β€” Create new, empty TX. a whole blank canvas, no cap.
  • -json β€” Select JSON output. for when you want your data all dressed up cute in JSON πŸ’–
  • -txid β€” Output only the hex-encoded transaction id of the resultant transaction. minimal era.

πŸ› οΈ Debugging/Testing options:

(no cap, this heading is just there with nothing under it in the original β€” keeping it exactly as-is because I don't make the rules, I just vibe with them πŸ’€)

πŸ”— Chain selection options:

  • -chain=<chain> β€” Use the chain <chain> (default: main). Allowed values: main, test, signet, regtest. pick your timeline bestie ⭐
  • -signet β€” Use the signet chain. Equivalent to -chain=signet. Note that the network is defined by the -signetchallenge parameter. ok so signet's whole personality is defined elsewhere, noted. 🌈
  • -signetchallenge β€” Blocks must satisfy the given script to be considered valid (only for signet networks; defaults to the global default signet test network challenge). like a vibe check for blocks, literally. πŸ¦‹
  • -signetseednode β€” 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)). so sig.net:1234 is the example, and yes you can stack these, queen. πŸ‘‘
  • -testnet β€” Use the test chain. Equivalent to -chain=test. test mode era πŸ§ͺ

πŸŽ€ Commands πŸŽ€

okay these are the actual commands you can throw at it, one by one, no skips:

  • delin=N β€” Delete input N from TX. bye felicia to input N πŸ‘‹
  • delout=N β€” Delete output N from TX. same energy, but for outputs πŸ’€
  • in=TXID:VOUT(:SEQUENCE_NUMBER) β€” Add input to TX. add that input, bestie 🫢
  • locktime=N β€” Set TX lock time to N. lock it in. periodt.
  • nversion=N β€” Set TX version to N. version upgrade, slay.
  • outaddr=VALUE:ADDRESS β€” Add address-based output to TX. πŸ“¬
  • outdata=[VALUE:]DATA β€” Add data-based output to TX. data girlie πŸ’Ύ
  • outmultisig=VALUE:REQUIRED:PUBKEYS:PUBKEY1:PUBKEY2:....[:FLAGS] β€” 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. multsig is so extra and I respect it πŸ’…
  • outpubkey=VALUE:PUBKEY[:FLAGS] β€” 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. πŸ”‘
  • outscript=VALUE:SCRIPT[:FLAGS] β€” 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. raw and unfiltered, love that for it πŸ“œ
  • replaceable(=N) β€” Set RBF opt-in sequence number for input N (if not provided, opt-in all available inputs). RBF era, we love a replaceable king πŸ”₯
  • sign=SIGHASH-FLAGS β€” Add zero or more signatures to transaction. This command requires JSON registers: prevtxs=JSON object, privatekeys=JSON object. See signrawtransactionwithkey docs for format of sighash flags, JSON objects. get them signatures bestie ✍️

πŸ“‹ Register Commands:

  • load=NAME:FILENAME β€” Load JSON file FILENAME into register NAME. loading era πŸ’Ύ
  • set=NAME:JSON-STRING β€” Set register NAME to given JSON-STRING. set it and forget it ✨

Copyright (C) 2009-2020 The Bitcoin Core developers

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>.

⚠️ okay listen bestie this part is important: This is experimental software. Distributed under the MIT software license, see the accompanying file COPYING or <https://opensource.org/licenses/MIT>. experimental = handle with care, no cap πŸ™ˆ

and that's the whole thing! πŸ’– this was bitcoin-tx v0.21.2.0, dated August 2021, and honestly she ate. go forth and build your transactions bestie, you got this 🫢✨🌸

πŸ“¦ where this page comes from