-
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
how I can get the transaction hash before web3.eth.sendSignedTransaction #2193
Comments
You might want to try this: https://web3js.readthedocs.io/en/1.0/web3-eth-personal.html#signtransaction |
tq for you reply, but I only have privateKey, signtransaction must need password for account. |
Managing plaintext private keys is a bad idea, but if you must, then try with https://web3js.readthedocs.io/en/1.0/web3-eth.html#signtransaction. |
@dk-lan This will get you the txHash of your transaction before sending it. |
@dev1644 |
@dev1644, hi I've tried wtih online hashing such as https://emn178.github.io/online-tools/keccak_256.html but the result is different. Maybe web3 has modified few input data or something? Thanks for your help so much bro. |
The text was updated successfully, but these errors were encountered: