Do you have any suggestions on how I could query the blockchain via web3 or something so that I can get a list of deployed contracts?
-
ethereum.stackexchange.com/q/8648/259 – niksmac Nov 24 '17 at 10:33
-
2Possible duplicate of How many contract are currently deployed on the Ethereum blockchain? – niksmac Nov 24 '17 at 10:33
-
not a duplicate, the older question just points to etherscan. it has no suggestions regarding a programmatic query. – rosul Nov 24 '17 at 10:35
For a list of deployed contracts, one way is to get all transaction receipts and print the contractAddress
.
For a list of all contracts, since contracts can create contracts, you would need to execute the EVM bytecode of every transaction to see what contracts are created by a transaction, similar to How to get contract internal transactions.