익명 04:02

What is the program in Python that print information about the current block?

What is the program in Python that print information about the current block?

What is the program in Python that print information about the current block the world try to mine (I mean Version, Previous Block, Merkle Root, Time, Bits) plus how many zeros we are looking for for the output of the hash!



Top Answer/Comment:

To take the information of the bitcoin blockchain, you can use the bitcoin core RPC Framework, for use it, you must have all blockchain on your computer

  1. Download Bitcoin core
  2. aligns the bitcoin node
  3. Configure rpc framework
  4. Use the API to take the information, I prefer using this library with python, this is an example for using it

You can use this documentation for study API

also for a response to the last comment, you can use the API for call the Mining commands but is difficult understand your question "I can print information about the block they're mining now" because the mining is a war for the node and each node can have different information

상단 광고의 [X] 버튼을 누르면 내용이 보입니다