diff --git a/ch03.asciidoc b/ch03.asciidoc index f5c5386d..d2a6d62b 100644 --- a/ch03.asciidoc +++ b/ch03.asciidoc @@ -677,7 +677,7 @@ $ bitcoin-cli getblock 0000000000000001b6b9a13b095e96db41c4a928b97ef2d944a9b3&#x ++++ -The block contains 419 transactions and the 64th transaction listed (+0627052b...+) is Alice's coffee payment. The +height+ entry tells us this is the 277316th block in the blockchain.((("", startref="alicethree"))) +The block contains 419 transactions and the 64th transaction listed (+0627052b...+) is Alice's coffee payment. The +height+ entry tells us this is the 277316th block in the blockchain. ==== Using Bitcoin Core's Programmatic Interface @@ -738,7 +738,7 @@ $ python rpc_transaction.py Both of the preceding examples are rather simple. You don't really need a program to run them; you could just as easily use the +bitcoin-cli+ helper. The next example, however, requires several hundred RPC calls and more clearly demonstrates the use of a programmatic interface. -In <>, we first retrieve block 277316, then retrieve each of the 419 transactions within by reference to each transaction ID. Next, we iterate through each of the transaction's outputs and add up the value. +In <>, we first retrieve block 277316, then retrieve each of the 419 transactions within by reference to each transaction ID. Next, we iterate through each of the transaction's outputs and add up the value.((("", startref="alicethree"))) [[rpc_block]] .Retrieving a block and adding all the transaction outputs