transactionState
The current transaction state of this session (Idle, In Transaction, or Failed).
With auto-commit off this is In Transaction before the first statement too, while the BEGIN that statement sends ahead of itself has yet to go out.