Signs a transaction with the given Solana account. The unsigned transaction should be serialized into a byte array and then encoded as base64.

Transaction types*

The following transaction types are supported: Legacy transactions Versioned transactions

The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.