# tokenType

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.9.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / tokenType

# Function: tokenType()

```
function tokenType(domain_sep, contract): string;
```

Derives the [TokenType](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/TokenType.md) associated with a particular [DomainSeperator](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/DomainSeperator.md) and contract.

## Parameters[​](#parameters "Direct link to Parameters")

### domain\_sep[​](#domain_sep "Direct link to domain_sep")

[`DomainSeperator`](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/DomainSeperator.md)

### contract[​](#contract "Direct link to contract")

`string`

## Returns[​](#returns "Direct link to Returns")

`string`
