---
title: "lockBlock(requestFlags:blockNumber:completionHandler:)"
framework: corenfc
role: symbol
role_heading: Instance Method
path: "corenfc/nfciso15693tag/lockblock(requestflags:blocknumber:completionhandler:)"
---

# lockBlock(requestFlags:blockNumber:completionHandler:)

Sends the Lock Block command (0x22 command code), as defined in the ISO 15693-3 specification, to the tag.

## Declaration

```swift
func lockBlock(requestFlags flags: NFCISO15693RequestFlag, blockNumber: UInt8, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func lockBlock(requestFlags flags: NFCISO15693RequestFlag, blockNumber: UInt8) async throws
```

## See Also

### Sending Single Block Commands

- [readSingleBlock(requestFlags:blockNumber:completionHandler:)](corenfc/nfciso15693tag/readsingleblock(requestflags:blocknumber:completionhandler:).md)
- [writeSingleBlock(requestFlags:blockNumber:dataBlock:completionHandler:)](corenfc/nfciso15693tag/writesingleblock(requestflags:blocknumber:datablock:completionhandler:).md)
