0

I am trying to make the end user sign something. I hosted this on with python simplehttpserver:

web3.eth.sign(web3.eth.accounts[0],"asdf"
,function(error, result){
 if(!error)
     console.log(JSON.stringify(result));
 else
     console.error(error);
})

But while metamask shows the prompt to sign something, when I click sign it doesn't show the result rather shows an error: TypeError: web3.eth.sign(...) is undefined. How do I solve this problem?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.