mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-24 00:51:39 +00:00
Move getrawtx example to snippet for reuse
This commit is contained in:
parent
0a24448da5
commit
4c1a702a48
@ -780,19 +780,12 @@ transaction was recorded on the blockchain.
|
|||||||
Let's use the API to retrieve and examine that transaction by passing
|
Let's use the API to retrieve and examine that transaction by passing
|
||||||
the txid as a parameter:
|
the txid as a parameter:
|
||||||
|
|
||||||
++++
|
[[alice_tx_serialized]]
|
||||||
<pre data-type="programlisting">
|
.Alice's serialized transaction
|
||||||
$ bitcoin-cli getrawtransaction 466200308696215bbc949d5141a49a4138ecdfdfaa2a8↵
|
[listing]
|
||||||
029c1f9bcecd1f96177
|
----
|
||||||
|
include::snippets/getrawtransaction-alice.txt[]
|
||||||
01000000000101eb3ae38f27191aa5f3850dc9cad00492b88b72404f9da135698679268041c54↵
|
----
|
||||||
a0100000000ffffffff02204e0000000000002251203b41daba4c9ace578369740f15e5ec880c↵
|
|
||||||
28279ee7f51b07dca69c7061e07068f8240100000000001600147752c165ea7be772b2c0acb7f↵
|
|
||||||
4d6047ae6f4768e0141cf5efe2d8ef13ed0af21d4f4cb82422d6252d70324f6f4576b727b7d91↵
|
|
||||||
8e521c00b51be739df2f899c49dc267c0ad280aca6dab0d2fa2b42a45182fc83e817130100000↵
|
|
||||||
000
|
|
||||||
</pre>
|
|
||||||
++++
|
|
||||||
|
|
||||||
[TIP]
|
[TIP]
|
||||||
====
|
====
|
||||||
|
10
snippets/getrawtransaction-alice.txt
Normal file
10
snippets/getrawtransaction-alice.txt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
$ bitcoin-cli getrawtransaction 466200308696215bbc949d5141a49a41\
|
||||||
|
38ecdfdfaa2a8029c1f9bcecd1f96177
|
||||||
|
|
||||||
|
01000000000101eb3ae38f27191aa5f3850dc9cad00492b88b72404f9da13569
|
||||||
|
8679268041c54a0100000000ffffffff02204e0000000000002251203b41daba
|
||||||
|
4c9ace578369740f15e5ec880c28279ee7f51b07dca69c7061e07068f8240100
|
||||||
|
000000001600147752c165ea7be772b2c0acb7f4d6047ae6f4768e0141cf5efe
|
||||||
|
2d8ef13ed0af21d4f4cb82422d6252d70324f6f4576b727b7d918e521c00b51b
|
||||||
|
e739df2f899c49dc267c0ad280aca6dab0d2fa2b42a45182fc83e81713010000
|
||||||
|
0000
|
Loading…
Reference in New Issue
Block a user