4

Is it possible to check if an account has a smart contract, from within a smart contract?

1 Answer 1

3

I believe this project by NSJames might be able to help you.

https://github.com/nsjames/Account-Has-Code

I believe the idea is an existing contract you can ask if another account has code on it or not. See the example to see how you might be able to implement it.

1
  • This idea is very. Unfortunately, the project seems doesn't update and the check code data is not up to date
    – Anson Wong
    Commented Oct 1, 2018 at 20:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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