---
title: How to Get a Token Mint
description:
  "Learn how to retrieve Solana token mint information, including supply,
  authority, decimals, and metadata."
---

In order to get the current supply, authority, or decimals a token has, you will
need to get the account info for the token mint.

## Fetch Mint Account

<CodeTabs storage="cookbook" flags="r">

```ts !! title="Kit" file=packages/docs-examples/cookbook/tokens/get-token-mint/kit.ts#region=fetch highlight=8

```

```ts !! title="Legacy" file=packages/docs-examples/cookbook/tokens/get-token-mint/legacy.ts#region=fetch highlight=10-15

```

```rust !! title="Rust" file=packages/docs-examples/cookbook/tokens/get-token-mint/rust/src/main.rs#region=fetch

```

```py !! title="Python" file=packages/docs-examples/cookbook/tokens/get-token-mint/python.py#region=fetch

```

</CodeTabs>

## Fetch Metaplex Token Metadata

For tokens using the
[Metaplex Token Metadata Program](https://developers.metaplex.com/token-metadata),
you can fetch the metadata account to get the token's name, symbol, and URI.

<CodeTabs storage="cookbook">

```ts !! title="Kit" file=packages/docs-examples/cookbook/tokens/get-token-mint/metadata-kit.ts#region=metadata highlight=9-10

```

</CodeTabs>

<Callout type="info">
  Not all tokens have Metaplex metadata. Tokens created with Token Extensions
  (Token-2022) may use the different functionality instead. See [Token
  Extensions Metadata](/docs/tokens/extensions/metadata) for more information.
</Callout>
