0

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

2
  • 1
    Though this doesn't help if there is a contract at the given address, but it's the wrong contract. Apr 28, 2018 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, 2018 at 7:42

1 Answer 1

2

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.