-
Notifications
You must be signed in to change notification settings - Fork 190
bx tx decode
evoskuil edited this page Oct 24, 2014
·
13 revisions
Decode a Base16 transaction.
$ bx tx-decode --helpUsage: bx tx-decode [-h] [--config VALUE] [--format VALUE] [TRANSACTION]
Info: Decode a Base16 transaction.
Options (named):
-c [--config] The path to the configuration settings file.
-f [--format] The output format. Options are 'info', 'json' and
'xml', defaults to 'info'.
-h [--help] Get a description and instructions for this command.
Arguments (positional):
TRANSACTION The Base16 transaction. If not specified the
transaction is read from STDIN.
See also tx-encode.
unsigned transaction
$ bx tx-decode 01000000017d01943c40b7f3d8a00a2d62fa1d560bf739a2368c180615b0a7937c0e883e7c0000000000ffffffff01c8af0000000000001976a91458b7a60f11a904feef35a639b6048de8dd4d9f1c88ac00000000
```js
transaction
{
hash e433a95114dc4eb2209f7c329bad265890affb728a60ac1b967d99bbe1f25971
inputs
{
input
{
previous_output
{
hash 7c3e880e7c93a7b01506188c36a239f70b561dfa622d0aa0d8f3b7403c94017d
index 0
}
script ""
sequence 4294967295
}
}
lock_time 0
outputs
{
output
{
address 1966U1pjj15tLxPXZ19U48c99EJDkdXeqb
script "dup hash160 [ 58b7a60f11a904feef35a639b6048de8dd4d9f1c ] equalverify checksig"
value 45000
}
}
version 1
}signed transaction
$ bx tx-decode 01000000017d01943c40b7f3d8a00a2d62fa1d560bf739a2368c180615b0a7937c0e883e7c000000006b4830450221008f66d188c664a8088893ea4ddd9689024ea5593877753ecc1e9051ed58c15168022037109f0d06e6068b7447966f751de8474641ad2b15ec37f4a9d159b02af68174012103e208f5403383c77d5832a268c9f71480f6e7bfbdfa44904becacfad66163ea31ffffffff01c8af0000000000001976a91458b7a60f11a904feef35a639b6048de8dd4d9f1c88ac00000000transaction
{
hash 37c9c4ee0e84c7c7924f74d92cf0779ec6e8fc4c57ebab2593562d52c61c5eb8
inputs
{
input
{
address 1JziqzXeBPyHPeAHrG4DCDW4ASXeGGF6p6
previous_output
{
hash 7c3e880e7c93a7b01506188c36a239f70b561dfa622d0aa0d8f3b7403c94017d
index 0
}
script "[ 30450221008f66d188c664a8088893ea4ddd9689024ea5593877753ecc1e9051ed58c15168022037109f0d06e6068b7447966f751de8474641ad2b15ec37f4a9d159b02af6817401 ] [ 03e208f5403383c77d5832a268c9f71480f6e7bfbdfa44904becacfad66163ea31 ]"
sequence 4294967295
}
}
lock_time 0
outputs
{
output
{
address 1966U1pjj15tLxPXZ19U48c99EJDkdXeqb
script "dup hash160 [ 58b7a60f11a904feef35a639b6048de8dd4d9f1c ] equalverify checksig"
value 45000
}
}
version 1
}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