0

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

3
  • Do you using bitcoin core? – vincenzopalazzo Sep 14 '19 at 8:00
  • Yes I have bitcoind and bitcoin-cli installed – kristofpouls Sep 14 '19 at 10:18
  • I added new answer – vincenzopalazzo Sep 14 '19 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

2
  • 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 '19 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 '19 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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