BITCOIN-TX(1)
π 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-signetchallengeparameter. 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 thehostname[: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)). sosig.net:1234is 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 inputNfrom TX. bye felicia to input N πdelout=Nβ Delete outputNfrom 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 toN. lock it in. periodt.nversion=Nβ Set TX version toN. 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 inputN(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. Seesignrawtransactionwithkeydocs for format of sighash flags, JSON objects. get them signatures bestie βοΈ
π Register Commands:
load=NAME:FILENAMEβ Load JSON fileFILENAMEinto registerNAME. loading era πΎset=NAME:JSON-STRINGβ Set registerNAMEto givenJSON-STRING. set it and forget it β¨
π COPYRIGHT π
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
- nixpkgs unstable: vertcoin 0.18.0
- nixpkgs unstable: vertcoind 0.18.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms