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

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.

Your Answer

 

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.

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