Signs a transaction with the given EVM account. The transaction should be serialized as a hex string using RLP.

The transaction must be an EIP-1559 dynamic fee transaction. The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.