Bitcoin

Can I read blockchain information from Electrum’s Python console?

I wanted to use Electrum’s Python console, but the documentation only provides a few examples.
Is there more complete documentation of Python commands inside Electrum?

The main thing I want to do at the moment is reading blockchain. These include:

  • Current block height
    (It’s in “tools” -> “network” in the GUI, but is there a CLI way to do this?)
  • Information about specific blocks such as POW and Merkle roots
    (I have no idea if there is a way to get it inside the console)
    (There is a file named ~/.electrum/blockchain_headersHowever, it is not human readable).

Is there any way to do that? (This is my main question)

(I’m currently using Electrum 3.3.8.)

Related Articles

Back to top button