litecoin-tx - manual page for litecoin-tx v0.18.1.0
litecoin-tx [options] <hex-tx> [commands]
Update hex-encoded litecoin transaction
litecoin-tx [options] -create [commands] Create
hex-encoded litecoin transaction
Litecoin Core litecoin-tx utility version v0.18.1.0
-?
- Print this help message and exit
-create
- Create new, empty TX.
-json
- Select JSON output
-txid
- Output only the hex-encoded transaction id of the resultant
transaction.
Chain selection options:
-testnet
- Use the test chain
Commands:
- delin=N
- Delete input N from TX
- delout=N
- Delete output N from TX
- in=TXID:VOUT(:SEQUENCE_NUMBER)
- Add input to TX
- locktime=N
- Set TX lock time to N
- nversion=N
- Set TX version to N
- outaddr=VALUE:ADDRESS
- Add address-based output to TX
- outdata=[VALUE:]DATA
- Add data-based output to TX
- 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.
- 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.
- replaceable(=N)
- Set RBF opt-in sequence number for input N (if not provided, opt-in all
available inputs)
- 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.
Register Commands:
- load=NAME:FILENAME
- Load JSON file FILENAME into register NAME
- set=NAME:JSON-STRING
- Set register NAME to given JSON-STRING
Copyright (C) 2011-2020 The Litecoin Core developers Copyright (C) 2011-2020 The
Bitcoin Core developers
Please contribute if you find Litecoin Core useful. Visit
<https://litecoin.org> for further information about the software. The
source code is available from
<https://github.com/litecoin-project/litecoin>.
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.