diff --git a/ch03.asciidoc b/ch03.asciidoc index 645f6ca1..bdd47aa8 100644 --- a/ch03.asciidoc +++ b/ch03.asciidoc @@ -780,19 +780,12 @@ transaction was recorded on the blockchain. Let's use the API to retrieve and examine that transaction by passing the txid as a parameter: -++++ -
-$ bitcoin-cli getrawtransaction 466200308696215bbc949d5141a49a4138ecdfdfaa2a8↵ -029c1f9bcecd1f96177 - -01000000000101eb3ae38f27191aa5f3850dc9cad00492b88b72404f9da135698679268041c54↵ -a0100000000ffffffff02204e0000000000002251203b41daba4c9ace578369740f15e5ec880c↵ -28279ee7f51b07dca69c7061e07068f8240100000000001600147752c165ea7be772b2c0acb7f↵ -4d6047ae6f4768e0141cf5efe2d8ef13ed0af21d4f4cb82422d6252d70324f6f4576b727b7d91↵ -8e521c00b51be739df2f899c49dc267c0ad280aca6dab0d2fa2b42a45182fc83e817130100000↵ -000 --++++ +[[alice_tx_serialized]] +.Alice's serialized transaction +[listing] +---- +include::snippets/getrawtransaction-alice.txt[] +---- [TIP] ==== diff --git a/snippets/getrawtransaction-alice.txt b/snippets/getrawtransaction-alice.txt new file mode 100644 index 00000000..7cce6228 --- /dev/null +++ b/snippets/getrawtransaction-alice.txt @@ -0,0 +1,10 @@ +$ bitcoin-cli getrawtransaction 466200308696215bbc949d5141a49a41\ +38ecdfdfaa2a8029c1f9bcecd1f96177 + +01000000000101eb3ae38f27191aa5f3850dc9cad00492b88b72404f9da13569 +8679268041c54a0100000000ffffffff02204e0000000000002251203b41daba +4c9ace578369740f15e5ec880c28279ee7f51b07dca69c7061e07068f8240100 +000000001600147752c165ea7be772b2c0acb7f4d6047ae6f4768e0141cf5efe +2d8ef13ed0af21d4f4cb82422d6252d70324f6f4576b727b7d918e521c00b51b +e739df2f899c49dc267c0ad280aca6dab0d2fa2b42a45182fc83e81713010000 +0000