<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/AppTransaction/shared",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit14AppTransactionV6sharedAA18VerificationResultOyACGvpZ"
  },
  "title" : "shared"
}
-->

# shared

Gets the App Store-signed app transaction information for the app.

```
static var shared: VerificationResult<AppTransaction> { get async throws }
```

## Discussion

Use this property to get a [`VerificationResult`](/documentation/StoreKit/VerificationResult) that contains the App Store-signed app transaction information for your app, including the first time the app launches. StoreKit automatically keeps the app transaction up-to-date.

This property throws an error if the [`AppTransaction`](/documentation/StoreKit/AppTransaction) isn’t available or if the user isn’t authenticated with the App Store. Getting an [`AppTransaction`](/documentation/StoreKit/AppTransaction) may require network connectivity.

The following example shows how to get the [`AppTransaction`](/documentation/StoreKit/AppTransaction).

```swift
do {
    let verificationResult = try await AppTransaction.shared

    switch verificationResult {
    case .verified(let appTransaction):
        // StoreKit verified that the user purchased this app and
        // the properties in the AppTransaction instance.
        // Add your code here.
    case .unverified(let appTransaction, let verificationError):
        // The app transaction didn't pass StoreKit's verification.        
        // Handle unverified app transaction information according
        // to your business model.
        // Add your code here.
    }
}
catch {
  // Handle errors.
}
```

If your app fails to get an [`AppTransaction`](/documentation/StoreKit/AppTransaction) by accessing the [`shared`](/documentation/StoreKit/AppTransaction/shared) property, see [`refresh()`](/documentation/StoreKit/AppTransaction/refresh()).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)