Each transaction has a unique oqid, which consists of the gen id, source database info, etc, etc, etc.
When a transaction is successfully applied/committed in the RDB the local rs_lastcommit table is updated.
Other than that I'm not sure what you're asking re: rolled back transactions.