---
title: "readAttributeTxTotalCount(completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthreadnetworkdiagnostics/readattributetxtotalcount(completionhandler:)"
---

# readAttributeTxTotalCount(completionHandler:)

## Declaration

```swift
func readAttributeTxTotalCount(completionHandler: @escaping @Sendable (NSNumber?, (any Error)?) -> Void)
```

```swift
func readAttributeTxTotalCount() async throws -> NSNumber
```
