You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
247 B
11 lines
247 B
9 years ago
|
from bitcoin.rpc import RawProxy
|
||
|
|
||
|
# Create a connection to local Bitcoin Core node
|
||
|
p = RawProxy()
|
||
|
|
||
|
# Run the getinfo command, store the resulting data in info
|
||
|
info = p.getinfo()
|
||
|
|
||
|
# Retrieve the 'blocks' element from the info
|
||
|
print(info['blocks'])
|