BlockchainΒΆ

Read blockchain related data-

from peerplays.blockchain import Blockchain
chain = Blockchain()

Read current block and blockchain info

print(chain.get_current_block())
print(chain.info())

Monitor for new blocks ..

for block in chain.blocks():
    print(block)

... or each operation individually:

for operations in chain.ops():
    print(operations)