0

This question already has an answer here:

For example if I want to warn my user that he make mistake in contract address.

marked as duplicate by Richard Horrocks, Achala Dissanayake, Malone, flygoing, Community May 1 '18 at 18:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Though this doesn't help if there is a contract at the given address, but it's the wrong contract. – Richard Horrocks Apr 28 '18 at 17:43
  • Should this question be edited to focus on Richard's second comment? Otherwise this question is a duplicate of the other questions raised in the comments. – eth May 1 '18 at 7:42
1

If you want to check whether an particular address contain some code just run below command from geth

web3.eth.getCode (addressstring). For more info https://googleweblight.com/i?u=https://web3js.readthedocs.io/en/1.0/web3-eth.html&hl=en-IN Or you can simply check on etherescan.io

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