You can get more control over the transaction and data sent to the Ethereum blockchain. Usually, we send a transaction with send transaction methods. You can also sign a transaction with the private key and send it directly. You will learn various ways to do this in this recipe.
Sending a raw transaction
Getting ready
You need to have web3.js installed on your application to use these methods. Some methods may need additional libraries, which are explained along with the respective methods. Ensure that you have a geth- or Ganache-based Ethereum network to connect and test these methods.