---
title: "init(tokenDriver:instanceID:)"
framework: cryptotokenkit
role: symbol
role_heading: Initializer
path: "cryptotokenkit/tktoken/init(tokendriver:instanceid:)"
---

# init(tokenDriver:instanceID:)

Initializes a token with the driver you specify.

## Declaration

```swift
init(tokenDriver: TKTokenDriver, instanceID: TKToken.InstanceID)
```

## Parameters

- `tokenDriver`: The driver of the token.
- `instanceID`: A unique, persistent identifier for this token. This value is typically generated from the serial number of the target hardware.

## Return Value

Return Value A new token object.

## Discussion

Discussion This is the designated initializer.

## See Also

### Creating Tokens

- [TKToken.InstanceID](cryptotokenkit/tktoken/instanceid.md)
