While nonce, gasLimit, gasPrice are the same fields as the object from the previous lesson, there are some key differences as well:
nonce: Same as the previous lesson
gasLimit: Maximum amount of gas consumed by the transaction. As deploying smart contracts require more gas, the limit will be higher than the previous lesson
gasPrice: Amount we pay for each unit of gas. Same as previous lesson
value: this field is absent as we are not sending any Ether
to: Similarly, this field is also absent as we’re not sending Ether to any particular account but we’re sending it to an entire network, i.e. deploying a smart contract
data: It’s the bytecode of the smart contract we want to deploy
To assign a value to the data parameter, which is a compiled bytecode representation of the smart contract in hexadecimal, we first need a smart contract and then we have to compile it. Once you’ve compiled the contract, you can assign the data value to a variable.