---
title: "getSlot(withName:reply:)"
framework: cryptotokenkit
role: symbol
role_heading: Instance Method
path: "cryptotokenkit/tksmartcardslotmanager/getslot(withname:reply:)"
---

# getSlot(withName:reply:)

Asynchronously calls a block with a Smart Card reader slot for a specified name.

## Declaration

```swift
func getSlot(withName name: String, reply: @escaping @Sendable (TKSmartCardSlot?) -> Void)
```

```swift
func getSlot(withName name: String) async -> TKSmartCardSlot?
```

## Parameters

- `name`: The name of the Smart Card reader slot.
- `reply`:

## See Also

### Accessing Smart Card Slots

- [slotNames](cryptotokenkit/tksmartcardslotmanager/slotnames.md)
- [slotNamed(_:)](cryptotokenkit/tksmartcardslotmanager/slotnamed(_:).md)
