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?

eth
  • 85,679
  • 53
  • 285
  • 406
rosul
  • 353
  • 1
  • 14

1 Answers1

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.

eth
  • 85,679
  • 53
  • 285
  • 406