1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-29 19:38:25 +00:00

Made changes to ch03.asciidoc

This commit is contained in:
myarbrough@oreilly.com 2014-11-18 06:55:22 -08:00
parent 81942e6761
commit 4d7892a0ac

View File

@ -636,9 +636,8 @@ To decode this hex string, use the +decoderawtransaction+ command. Copy and past
$ bitcoin-cli decoderawtransaction 0100000001d717...388ac00000000
----
++++
<programlisting language="json">
[source,json]
----
{
"txid" : "9ca8f969bd3ef5ec2a8685660fdbf7a8bd365524c2e1fc66c309acbae2c14ae3",
"version" : 1,
@ -682,8 +681,7 @@ $ bitcoin-cli decoderawtransaction 0100000001d717...388ac00000000
}
]
}
</programlisting>
++++
----
The transaction decode shows all the components of this transaction, including the transaction inputs and outputs. In this case we see that the transaction that credited our new address with 50 millibits used one input and generated two outputs. The input to this transaction was the output from a previously confirmed transaction (shown as the vin txid starting with +d3c7+). The two outputs correspond to the 50 millibit credit and an output with change back to the sender.