Current location - Quotes Website - Personality signature - Ethereum web3.sendRawTransaction offline signature transaction
Ethereum web3.sendRawTransaction offline signature transaction
Short url attacks and dao reentry attacks need to be reproduced in the works. Reentry attacks can send transactions directly through eth.sendTransaction and remix, while short url attacks cannot be reproduced by these methods because wallets and remix have detected the length of input, and can only be realized by sending offline signature transactions.

1. environment dependencies: Nodejs, Keythereum, Ethereumjs-common, Ethereumjs-tx.

2. Enter the node console and get the private key of the corresponding account.

3. Sign the transaction and enter the node. Pay attention to the Nonce problem here You need the Nonce to be an actual executable nonce. If nonce is incorrect, the transaction will fail. How to get the input data is not detailed.

4. For the pit encountered, Baidu's steps are problematic or outdated. At that time, I referred to this article, /articles/ blockchain-articles/199903.html.

, sending a signed transaction through eth.sendRawTransaction in the console, and encountering this error * * sendrawtransaction is invalid sender * *