Sends a new transaction to the network. If the transaction has no recipient and contains data, it creates a new contract. If the transaction has a recipient and data it executes a write contract call.
type Transaction = {
from: Address // The account the transaction is sent from.
to?: Address // The transaction recipient.
gas?: Number ?? 90000 // Gas units provided for transaction executon. It will return unused gas.
gasPrice?: Number ?? currentGasPrice() // WEI paid for each gas unit used.
value?: Number // WEI sent with this transaction to the recipient.
data?: HexData // Encoded contract code or encoded contract call data.
}