From 9ba567c74b280722161eb136c1766450a325f108 Mon Sep 17 00:00:00 2001 From: Dan Raviv Date: Fri, 6 Sep 2019 08:34:21 +0300 Subject: [PATCH] Change parameter block->blocks in description to match code The example gets the `blocks` parameter. The preceding description says it takes the `block` parameter. This seems to be a typo. --- ch03.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch03.asciidoc b/ch03.asciidoc index 31e01a2a..e13e810d 100644 --- a/ch03.asciidoc +++ b/ch03.asciidoc @@ -690,7 +690,7 @@ If you're implementing a JSON-RPC call in your own program, you can use a generi However, there are libraries in most every programming language that "wrap" the Bitcoin Core API in a way that makes this a lot simpler. We will use the +python-bitcoinlib+ library to simplify API access. Remember, this requires you to have a running Bitcoin Core instance, which will be used to make JSON-RPC calls. -The Python script in <> makes a simple +getblockchaininfo+ call and prints the +block+ parameter from the data returned by Bitcoin Core. +The Python script in <> makes a simple +getblockchaininfo+ call and prints the +blocks+ parameter from the data returned by Bitcoin Core. [[rpc_example]] .Running getblockchaininfo via Bitcoin Core's JSON-RPC API