bitcoin-tx [options] -create [commands] Create hex-encoded bitcoin transaction
- Print this help message and exit
- Create new, empty TX.
- Select JSON output
- Output only the hex-encoded transaction id of the resultant transaction.
Chain selection options:
- Use the test chain
- Delete input N from TX
- Delete output N from TX
- Add input to TX
- Set TX lock time to N
- Set TX version to N
- Add address-based output to TX
- Add data-based output to TX
- 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.
- 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.
- 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.
- Set RBF opt-in sequence number for input N (if not provided, opt-in all available inputs)
- 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.
- Load JSON file FILENAME into register NAME
- Set register NAME to given JSON-STRING
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>.
This is experimental software. Distributed under the MIT software license, see the accompanying file COPYING or <https://opensource.org/licenses/MIT>
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit <https://www.openssl.org> and cryptographic software written by Eric Young and UPnP software written by Thomas Bernard.
|August 2019||bitcoin-tx v0.18.1.0|