Is there any application out there that allows me to explore the Ethereum blockchain in a private network? (something similar to what blockchain.info does to bitcoin or etherchain does to ethereum public network)
[Ethereum] Block explorer running on private network
explorersprivate-blockchain
Best Answer
I don't know of any block explorer source code / application you can deploy into your private network.
Here's my scripts to check and print blocks, uncles and transactions that can be used to explore blocks in your private network.
I've listed them separately for easier reading. If you intend to use it in
geth
, you would probably want to concatenate the following 5 functions into a single file for easy copy-pasting into thegeth
console.printTransaction(txHash)
printBlock(block)
printUncle(block, uncleNumber, uncle)
getMinedBlocks(miner, startBlockNumber, endBlockNumber)
If
startBlockNumber
is not specified, it will default to the last 10,000 blocks. This takes some time to scan, so reduce this number to 1000 to reduce the scanning time.If
endBlockNumber
is not specified, it will default to the latest block number.getMyMinedBlocks(startBlockNumber, endBlockNumber)
Examples For Using The Function Above
Here are some examples of using the above functions on the public mainnet Ethereum network.
Print block mined by "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5". See https://etherscan.io/block/1325630
with the output being:
Print block with uncles mined by "0x4bb96091ee9d802ed039c4d1a5f6216f90f81b01". See https://etherscan.io/block/1325635
Print block with uncles. See https://etherscan.io/block/907703
Print blocks my miner has mined between blocks 1321603 and 1321605