from trtl import TurtleCoind
daemon_host = 'localhost'
daemon_port = 11898
ssl = False
turtlecoind = TurtleCoind(host = daemon_host, port = daemon_port, ssl = ssl)
response = turtlecoind.get_block_count()
print(response)
height = 123456
response = turtlecoind.get_block_hash(height)
print(response)
reserve_size = 200
wallet_address = 'TRTLxxxx...'
response = turtlecoind.get_block_template(reserve_size, wallet_address)
print(response)
block_blob = '0100b...'
response = turtlecoind.submit_block(block_blob)
print(response)
response = turtlecoind.get_last_block_header()
print(response)
hash = '30706...'
response = turtlecoind.get_block_header_by_hash(hash)
print(response)
height = 123456
response = turtlecoind.get_block_header_by_height(height)
print(response)
response = turtlecoind.get_currency_id()
print(response)
height = 500000
response = turtlecoind.get_blocks(height)
print(response)
hash = '980ff...'
response = turtlecoind.get_block(hash)
print(response)
hash = '702ad...'
response = turtlecoind.get_transaction(hash)
print(response)
response = turtlecoind.get_transaction_pool()
print(response)