-
Notifications
You must be signed in to change notification settings - Fork 180
bx tx encode
Eric Voskuil edited this page Oct 3, 2015
·
12 revisions
Encode an unsigned transaction as Base16.
$ bx tx-encode --help
Usage: bx tx-encode [-h] [--config VALUE] [--input VALUE] [--lock_time
VALUE] [--output VALUE] [--script_version VALUE] [--version VALUE]
Info: Encode an unsigned transaction as Base16.
Options (named):
-c [--config] The path to the configuration settings file.
-h [--help] Get a description and instructions for this command.
-i [--input] The set of transaction input points encoded as
TXHASH:INDEX:SEQUENCE. TXHASH is a Base16
transaction hash. INDEX is the 32 bit input index in
the context of the transaction. SEQUENCE is the
optional 32 bit input sequence and defaults to the
maximum value.
-l [--lock_time] The transaction lock time.
-o [--output] The set of transaction output data encoded as
TARGET:SATOSHI:SEED. TARGET is an address (including
stealth or pay-to-script-hash) or a Base16 script.
SATOSHI is the 32 bit spend amount in satoshi. SEED
is required for stealth outputs and not used
otherwise. The same seed should NOT be used for
multiple outputs.
-s [--script_version] The pay-to-script-hash payment address version,
defaults to 5. This is used to differentiate output
addresses.
-v [--version] The transaction version, defaults to 1.
See also tx-decode.
one input, one output
$ bx tx-encode -i 7c3e880e7c93a7b01506188c36a239f70b561dfa622d0aa0d8f3b7403c94017d:0 -o 1966U1pjj15tLxPXZ19U48c99EJDkdXeqb:45000
01000000017d01943c40b7f3d8a00a2d62fa1d560bf739a2368c180615b0a7937c0e883e7c0000000000ffffffff01c8af0000000000001976a91458b7a60f11a904feef35a639b6048de8dd4d9f1c88ac00000000
one input, script output
$ bx tx-encode -i 7c3e880e7c93a7b01506188c36a239f70b561dfa622d0aa0d8f3b7403c94017d:0 -o 76a91418c0bd8d1818f1bf99cb1df2269c645318ef7b7388ac:500
01000000017d01943c40b7f3d8a00a2d62fa1d560bf739a2368c180615b0a7937c0e883e7c0000000000ffffffff01f4010000000000001976a91418c0bd8d1818f1bf99cb1df2269c645318ef7b7388ac00000000
Users | Developers | License | Copyright © 2011-2024 libbitcoin developers
- Home
- Build BX
- General Information
- Developer Information
- Configuration Settings
- Tutorials
- Meta Commands
- Wallet Commands
- Key Encryption Commands
- Stealth Commands
- Messaging Commands
- Transaction Commands
- Online Commands
- Encoding Commands
- Hash Commands
- Math Commands