Skip to content

Commit

Permalink
ch03: Add mention that full node is required
Browse files Browse the repository at this point in the history
  • Loading branch information
wbnns committed Mar 10, 2021
1 parent 6661b9c commit e6f8c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch03.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<rpc_example>> makes a simple +getblockchaininfo+ call and prints the +blocks+ parameter from the data returned by Bitcoin Core.
The Python script in <<rpc_example>> makes a simple +getblockchaininfo+ call and prints the +blocks+ parameter from the data returned by Bitcoin Core (full node required).

[[rpc_example]]
.Running getblockchaininfo via Bitcoin Core's JSON-RPC API
Expand Down

0 comments on commit e6f8c9d

Please sign in to comment.