---
title: "readAttributeAcceptedCommandList(withAttributeCache:endpoint:queue:completionHandler:)"
framework: matter
role: symbol
role_heading: Type Method
path: "matter/mtrbaseclusterbasic/readattributeacceptedcommandlist(withattributecache:endpoint:queue:completionhandler:)"
---

# readAttributeAcceptedCommandList(withAttributeCache:endpoint:queue:completionHandler:)

## Declaration

```swift
class func readAttributeAcceptedCommandList(withAttributeCache attributeCacheContainer: MTRAttributeCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t, completionHandler: @escaping @Sendable ([Any]?, (any Error)?) -> Void)
```

```swift
class func readAttributeAcceptedCommandList(withAttributeCache attributeCacheContainer: MTRAttributeCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> [Any]
```
