Execute a transaction with error handling.
Result containing the transaction result or an error
The transaction block