Beispiel #1
0
code = 'contract Test {}'
print c.eth_compileSolidity(code)

#code = ''
#print c.eth_compileSerpent(code)

#code = ''
#print c.eth_compileLLL(code)

################################################################################
print '*' * 80

b = (246236, '0xcd43703a1ead33ffa1f317636c7b67453c5cc03a3350cd71dbbdd70fcbe0987a')
index = 2
print c.eth_getTransactionByBlockHashAndIndex(b[1], index)

for x in ['earliest', 'latest', 'pending', b[0]]:
    print c.eth_getTransactionByBlockNumberAndIndex(b[0], index)

tx = '0x27191ea9e8228c98bc4418fa60843540937b0c615b2db5e828756800f533f8cd'
print c.eth_getTransactionReceipt(tx)

b = (246294, '0x3d596ca3c7b344419567957b41b2132bb339d365b6b6b3b6a7645e5444914a16')
index = 0
print c.eth_getUncleByBlockHashAndIndex(b[1], index)

for x in ['earliest', 'latest', 'pending', b[0]]:
    print c.eth_getUncleByBlockNumberAndIndex(b[0], index)

################################################################################
Beispiel #2
0
tx = '0x12cd5d9a82049154c8990214a551479853d1bfe45852688833bc4ef86a29b1a3'
print(c.eth_getTransactionByHash(tx))

################################################################################
print('*' * 80)

code = 'contract Test {}'
print(c.eth_compileSolidity(code))

################################################################################
print('*' * 80)

b = (246236, '0xcd43703a1ead33ffa1f317636c7b67453c5cc03a3350cd71dbbdd70fcbe0987a')
index = 2
print(c.eth_getTransactionByBlockHashAndIndex(b[1], index))

for x in ['earliest', 'latest', 'pending', b[0]]:
    print(c.eth_getTransactionByBlockNumberAndIndex(b[0], index))

tx = '0x27191ea9e8228c98bc4418fa60843540937b0c615b2db5e828756800f533f8cd'
print(c.eth_getTransactionReceipt(tx))

b = (246294, '0x3d596ca3c7b344419567957b41b2132bb339d365b6b6b3b6a7645e5444914a16')
index = 0
print(c.eth_getUncleByBlockHashAndIndex(b[1], index))

for x in ['earliest', 'latest', 'pending', b[0]]:
    print(c.eth_getUncleByBlockNumberAndIndex(b[0], index))

################################################################################
Beispiel #3
0
code = 'contract Test {}'
print(geth_client.eth_compileSolidity(code))

#code = ''
#print(geth_client.eth_compileSerpent(code)

#code = ''
#print(geth_client.eth_compileLLL(code)

################################################################################
print('*' * 80)

b = (246236,
     '0xcd43703a1ead33ffa1f317636c7b67453c5cc03a3350cd71dbbdd70fcbe0987a')
index = 2
print(geth_client.eth_getTransactionByBlockHashAndIndex(b[1], index))

for x in ['earliest', 'latest', 'pending', b[0]]:
    print(geth_client.eth_getTransactionByBlockNumberAndIndex(b[0], index))

tx = '0x27191ea9e8228c98bc4418fa60843540937b0c615b2db5e828756800f533f8cd'
print(geth_client.eth_getTransactionReceipt(tx))

b = (246294,
     '0x3d596ca3c7b344419567957b41b2132bb339d365b6b6b3b6a7645e5444914a16')
index = 0
print(geth_client.eth_getUncleByBlockHashAndIndex(b[1], index))

for x in ['earliest', 'latest', 'pending', b[0]]:
    print(geth_client.eth_getUncleByBlockNumberAndIndex(b[0], index))