-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signTransaction gives 'Must provide "signTransaction" fn in constructor option' error #1599
Comments
I am using Metamask, which use Infura, for testing my app, so I am almost sure it isn't an ethereum client problem. |
@ArvsIndrarys I have signTransaction implemented like this: signTransaction: async (txParams, cb) => {
} |
As my code would be expected to go to production and of public use, I won't accept extracting the private key because of security breach. |
@ArvsIndrarys of course, but if you can't use MetaMask or Ledger or something and u have your own methods tosigning, there is probably no other way. Ofc better is to have it on API hidden from browser |
Any other methods require private key extraction, so I had to use the It seems I finally did it few days ago, using a little reverse-engineering and the But as web3js and web3J don't sign the same way ( hyperledger/web3j#208 ) and I was never able to send the signed transaction from the backend :/ . May I ask why the |
@ArvsIndrarys It wasnt abandoned. In version 1.0.0 there is signTransaction method |
My bad, I don't know know about my first problem then... |
Version 0.20.x got his last maintenance release with v0.20.7. Please update your code to the latest 1.0 version of Web3.js. Further details about the current project state are explained in the release announcement of version 1.0.0-beta.38. |
For my project, I need to do some offline transaction signing, before sending the result to the backend, which will send them. But I am encountering the following error :
I currently have :
And I saw it in : https://github.com/ethereum/web3.js/blob/6d3e61a010501011a107a79574cc7516900fa9e4/lib/web3/methods/eth.js#L205
and (outdated) : https://web3js.readthedocs.io/en/1.0/web3-eth.html#signtransaction
I am clueless about how to resolve it as it don't seem to be due to my code... Can somebody help?
The text was updated successfully, but these errors were encountered: