Esempio n. 1
0
def get_block_hash(height: int):
    resp = call_daemon_method('on_getblockhash', {"height": height})
    return resp
Esempio n. 2
0
def get_block_count():
    resp = call_daemon_method('getblockcount')
    return resp['count']
Esempio n. 3
0
def get_block_by_hash(hash: str):
    resp = call_daemon_method('getblockheaderbyhash', {"hash": hash})
    return resp['block_header']
Esempio n. 4
0
def get_block_by_height(height: int):
    resp = call_daemon_method('getblockheaderbyheight', {"height": height})
    return resp['block_header']
Esempio n. 5
0
def get_last_block_header():
    resp = call_daemon_method('getlastblockheader')
    return resp['block_header']