I have a bitcoin-core full node running and I want to access my node in Python, how can I retrieve the blockchain info?


1 Answer 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. Sep 16, 2019 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 Sep 16, 2019 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.