I have a bitcoin-core full node running and I want to access my node in Python, how can I retrieve the blockchain info?
0
-
Do you using bitcoin core? – vincenzopalazzo Sep 14 at 8:00
-
Yes I have bitcoind and bitcoin-cli installed – kristofpouls Sep 14 at 10:18
-
I added new answer – vincenzopalazzo Sep 14 at 10:41
1
You can use RPC bitcoin framework for creating the request to the node to get information.
With python exist more library, I preferer this python-bitcoinrpc but a list the library is here
For configuring the node to accepting the request look this reference
other util references
-
I try to establish a rpc connection with the AuthServiceProxy method from bitcoinrpc with the following parameters: AuthServiceProxy ("casa-node.lan:mycasapassword@mycasaip:8332") but I get no acces. – kristofpouls Sep 16 at 10:16
-
Do you have an error in the stack-trace python? if you want an example for using the library, I wrote this simple script for creating a simple console GUI this is the code if you have an error with my code, please public your bitcoin.conf and your bitcoin configuration – vincenzopalazzo Sep 16 at 12:14