I want to send a method from the owner's account to which I have the private key. enter image description here

I tried adding the private key int he red rectangle but when I run it I get this error: enter image description here

1 Answer 1


You're calling the send() method incorrectly. Please read the web3js official documentation in order to send a transaction to a smart contract and execute its method.

Seems like you want to sign a transaction using a hardcoded signer private key, rather than requesting a signature through a crypto wallet. In this case, follow this answer.

  • I'm trying to send a method. The issue is when doing that code send({from:address}).then((err,result)=> I receive an error saying that the acount is unknow. And I should call this from the owner's account which should be hooked to the server. Any ideas? Commented Apr 13, 2023 at 14: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.