---
title: NSPersistentHistoryTransaction
framework: coredata
role: symbol
role_heading: Class
path: coredata/nspersistenthistorytransaction
---

# NSPersistentHistoryTransaction

A set of changes in the persistent history based on a context save or batch operation.

## Declaration

```swift
class NSPersistentHistoryTransaction
```

## Mentioned in

Consuming relevant store changes

## Topics

### Requesting Notifications

- [objectIDNotification()](coredata/nspersistenthistorytransaction/objectidnotification().md)

### Customizing History Fetch Requests

- [fetchRequest](coredata/nspersistenthistorytransaction/fetchrequest.md)
- [entityDescription](coredata/nspersistenthistorytransaction/entitydescription.md)
- [entityDescription(with:)](coredata/nspersistenthistorytransaction/entitydescription(with:).md)

### Inspecting Transaction Details

- [author](coredata/nspersistenthistorytransaction/author.md)
- [bundleID](coredata/nspersistenthistorytransaction/bundleid.md)
- [changes](coredata/nspersistenthistorytransaction/changes.md)
- [contextName](coredata/nspersistenthistorytransaction/contextname.md)
- [processID](coredata/nspersistenthistorytransaction/processid.md)
- [storeID](coredata/nspersistenthistorytransaction/storeid.md)
- [timestamp](coredata/nspersistenthistorytransaction/timestamp.md)
- [token](coredata/nspersistenthistorytransaction/token.md)
- [transactionNumber](coredata/nspersistenthistorytransaction/transactionnumber.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Reading History

- [NSPersistentHistoryChange](coredata/nspersistenthistorychange.md)
