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 * *