2

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?

2

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.