# decodeRawTokenType

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

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

***

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

# Function: decodeRawTokenType()

```
function decodeRawTokenType(tt): string;
```

Decode a raw [RawTokenType](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/RawTokenType.md) from a `Uint8Array` originating from Compact's `RawTokenType` type

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

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

`Uint8Array`

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

`string`
