I want to know how through using this library I can print information about the current block that the world mine right now and I mean by that: Version, Previous Block, Merkle Root, Time, Bits, and how many zeros we are looking for for the output of the hash.
The world mines multiple blocks at once, with only one block chosen by consensus to be kept.
If you want to get some information from bitcoin’s RPC you should consider using your own node.
You can call the RPC method getmininginfo but this command might not return the mining information you are searching for (an example Previous Block is not correct).
With the following information you can have the following problem:
- Previous Block: The Previous Block is not equal to all networks at the same moment;
- Merkle Root: Every block can contain different transactions and in a different order
And on your question of how you can use the library python-bitcoinrpc, you can see my Python3 script for one example. you can find the script here