This page determines the current Ethereum details. You can check [here].
Etheum Blockchain detailsCodeA sample of the code used is: import httplib2 import json apikey='***YOUR API KEY HERE****' def geneth(module,action,addr="",tag="",addition="",txhash=""): if (addr<>""): addr="&address="+addr if (tag<>""): tag="&tag="+str(tag) if (txhash<>""): txhash="&txhash="+str(txhash) st='http://api.etherscan.io/api?module='+module+'&action='+action+'&apikey='+apikey+addr+tag+txhash+addition content,res= httplib2.Http().request(st) d=json.loads(res) return d v = geneth('stats','ethsupply') print "Eth supply:\t\t\t",v['result'] v = geneth('stats','ethprice',"") print "Eth price ($):\t\t\t",v['result']['ethusd'] v = geneth('proxy','eth_gasPrice') gas=int(v['result'],16) print "Gas price:\t\t\t",gas," Wei (", gas/1e18,"Eth)" v = geneth('proxy','eth_blockNumber') block=v['result'] print "Most recent block:\t\t",int(v['result'],16) v = geneth('proxy','eth_getBlockTransactionCountByNumber',tag=block) count=v['result'] print " No of trans in block:\t\t",int(count,16) v = geneth('proxy','eth_getBlockTransactionCountByNumber',tag="0x10FB78") res=v['result'] print "No of trans in Block 0x10FB78:\t",res v = geneth('proxy','eth_getTransactionByHash',txhash="0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1") res=v['result'] print "Transaction by 0x1e..c1:\t",json.dumps(res,indent=4, sort_keys=True) v = geneth('proxy','eth_getCode',addr="0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c", tag='latest') res=v['result'] print "Ethcode for 0xf75..d0c:\t",res v = geneth('account','balance',addr="0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a") block=v['result'] print "Account balance for 0xdd..121a:\t",v['result']," Wei (", int(block)/1e18,"Eth)" v = geneth('account','getminedblocks',addr="0x9dd134d14d1e65f84b706d6f205cd5b1cd03a46b") res=v['result'][0] print "First mined blocks by 0x9dd..46:\t",json.dumps(res,indent=4, sort_keys=True) And a sample run: Eth supply: 97689231592800000000000000 Eth price ($): 912.22 Gas price: 20000000000 Wei ( 2e-08 Eth) Most recent block: 5112087 No of trans in block: 83 No of trans in Block 0x10FB78: 0x3 Transaction by 0x1e..c1: { "blockHash": "0xf64a12502afc36db3d29931a2148e5d6ddaa883a2a3c968ca2fb293fa9258c68", "blockNumber": "0x70839", "from": "0xc80fb22930b303b55df9b89901889126400add38", "gas": "0x30d40", "gasPrice": "0xba43b7400", "hash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1", "input": "0xfc36e15b0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a4861636b65726e65777300000000000000000000000000000000000000000000", "nonce": "0xa7", "r": "0xe7ccdba116aa95ae8d9bdd02f619a0cdfc1f60c5740b3899865822a80cd70218", "s": "0xf200df1921ea988d16280a0873b69cb782a54e8a596d15e700710c820c8d2a9e", "to": "0x03fca6077d38dd99d0ce14ba32078bd2cda72d74", "transactionIndex": "0x0", "v": "0x1c", "value": "0x0" } Ethcode for 0xf75..d0c: 0x3660008037602060003660003473273930d21e01ee25e4c219b63259d214872220a261235a5a03f21560015760206000f3 Account balance for 0xdd..121a: 40807168564070000000000 Wei ( 40807.1685641 Eth) First mined blocks by 0x9dd..46: { "blockNumber": "3462296", "blockReward": "5194770940000000000", "timeStamp": "1491118514" } From this we can see things such as the current block, the current price and the number of transactions in the block. For a given transactions, we can see that it contains the block number it is contained in and the blockhash. The "input" field contains the code within the transaction. Along with this we can see the gas value applied. We can see there is a "to" address for the transaction, and an nonce value (which is generated by the miner, in order to produce the hash). Here is a brief introduction to Ethereum: |