I'm trying to understand how to convert my transaction data into the id hash before signing the transaction.
Let's say I have this data:
transaction = {
'to': to_address,
'from': from_address,
'value': 4200000000000000,
'gas': 21000,
'gasPrice': 22000000000,
'chainId': 1,
'nonce': '0x0'
}
How can I convert this into the id hash?