How can I query a list of all current contracts with geth?
Is there a way to see the contracts' class names?


One way is to run a script in Geth's console, that gets the receipt of each transaction and looks at the contractAddress property: web3.eth.getTransactionReceipt

Use web3.eth.getBlock to get the transaction hashes to feed into web3.eth.getTransactionReceipt.

Contracts' class names are not stored on the blockchain, so they can't be seen.

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.