0

I want to distinguish between contract addresses and smart contract addresses. But when running

web3.eth.getCode()

in the geth console with either a contract or a non-contract address, it returns "0x".

I am using geth 1.8.22. Does anyone has an idea why that happens?

New contributor
Timon is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Timon is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.