I have a contract which uses ink_env::ecdsa_recover() for signature verification. Though all the tests are passing, I am unable to deploy it on the local node using contracts-ui.

This is the error it's throwing:

module imports a non-existent function

What am I missing?

  • What local node are you using ?
    – P.Ossun
    Commented May 5, 2022 at 13:05

1 Answer 1


ink_env::ecdsa_recover() uses an unstable interface of the contracts pallet. Make sure to use the substrate-contracts-node which has unstable interfaces enabled by default.

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.