---
title: "fetchAttestationChallenge(forDeviceId:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrdevicecontroller/fetchattestationchallenge(fordeviceid:)"
---

# fetchAttestationChallenge(forDeviceId:)

## Declaration

```swift
func fetchAttestationChallenge(forDeviceId deviceId: UInt64) -> Data?
```
