> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Create a Token Mint

> Create a token mint and configure the mint's decimals, mint authority, and freeze authority.

## In short

A mint account defines a token: its supply, its decimals, who may create more (*mint authority*), and who may freeze holders (*freeze authority*).

<div className="sol-usedin not-prose" data-concept="mint">
<span className="sol-usedin-label">You've used this in:</span> [Quickstart <span className="sol-usedin-step">Step 3</span>](/developers/docs/quickstart/create-asset) [Quickstart <span className="sol-usedin-step">Step 5</span>](/developers/docs/quickstart/freeze-holder) [Tokenized asset <span className="sol-usedin-step">Step 2</span>](/developers/docs/assets/issue-asset/browser)
</div>

## What Is a Mint Account

A mint account defines and uniquely identifies a token on Solana, and stores the
shared state that applies to all token accounts for that mint.

The Token Program defines the `Mint` account type as:

```rust title="Mint Account Type"
/// Mint data.
#[repr(C)]
#[derive(Clone, Copy, Debug, Default, PartialEq)]
pub struct Mint {
  /// Optional authority used to mint new tokens. The mint authority may only
  /// be provided during mint creation. If no mint authority is present
  /// then the mint has a fixed supply and no further tokens may be
  /// minted.
  pub mint_authority: COption<Pubkey>,
  /// Total supply of tokens.
  pub supply: u64,
  /// Number of base 10 digits to the right of the decimal place.
  pub decimals: u8,
  /// Is `true` if this structure has been initialized
  pub is_initialized: bool,
  /// Optional authority to freeze token accounts.
  pub freeze_authority: COption<Pubkey>,
}
```

Every token has one mint account, and the mint address is the token's unique
identifier across wallets, applications, and explorers.

For example, USD Coin (USDC) has the mint address
`EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`. The mint address uniquely
identifies USDC throughout the Solana ecosystem. You can view this mint on
[Solana Explorer](https://explorer.solana.com/address/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v).

## How to Create a Mint Account

Creating a mint requires two instructions:

1. The System Program's `CreateAccount` instruction creates a new
   rent-exempt account and assigns the Token Program as the program owner of the
   new account.
2. The Token Program's `InitializeMint` or `InitializeMint2` instruction
   initializes the new account as a mint.

Include the `CreateAccount` instruction and the mint initialization
instruction in the same transaction.

During mint initialization, the Token Program checks that the mint account is
not already initialized and is rent-exempt. The Token Program then writes the
mint authority, freeze authority, decimals, and `is_initialized` flag into
the mint account data.

### Source Reference

| Item                       | Description                                                                                           | Token Program                                                                                                  | Token Extension Program                                                                                              |
| -------------------------- | ----------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `Mint`                     | The base mint state stored in every mint account.                                                     | [Source](https://github.com/solana-program/token/blob/program%40v9.0.0/interface/src/state.rs#L13-L30)         | [Source](https://github.com/solana-program/token-2022/blob/program%40v10.0.0/interface/src/state.rs#L25-L42)         |
| `InitializeMint`           | A mint initialization instruction that expects the rent sysvar account in its accounts list.          | [Source](https://github.com/solana-program/token/blob/program%40v9.0.0/interface/src/instruction.rs#L24-L44)   | [Source](https://github.com/solana-program/token-2022/blob/program%40v10.0.0/interface/src/instruction.rs#L50-L74)   |
| `InitializeMint2`          | A mint initialization instruction that does not require the rent sysvar account in its accounts list. | [Source](https://github.com/solana-program/token/blob/program%40v9.0.0/interface/src/instruction.rs#L401-L414) | [Source](https://github.com/solana-program/token-2022/blob/program%40v10.0.0/interface/src/instruction.rs#L471-L486) |
| `_process_initialize_mint` | Shared processor logic for mint initialization.                                                       | [Source](https://github.com/solana-program/token/blob/program%40v9.0.0/program/src/processor.rs#L27-L60)       | [Source](https://github.com/solana-program/token-2022/blob/program%40v10.0.0/program/src/processor.rs#L87-L130)      |
| `process_initialize_mint`  | Public handler for `InitializeMint`.                                                                  | [Source](https://github.com/solana-program/token/blob/program%40v9.0.0/program/src/processor.rs#L62-L70)       | [Source](https://github.com/solana-program/token-2022/blob/program%40v10.0.0/program/src/processor.rs#L132-L140)     |
| `process_initialize_mint2` | Public handler for `InitializeMint2`.                                                                 | [Source](https://github.com/solana-program/token/blob/program%40v9.0.0/program/src/processor.rs#L72-L81)       | [Source](https://github.com/solana-program/token-2022/blob/program%40v10.0.0/program/src/processor.rs#L142-L151)     |

### Kit

These examples use `@solana/kit`.

<CodeGroup>

```ts Plugin highlight={16,21-26}
import { createClient, generateKeyPairSigner, lamports } from "@solana/kit";
import { solanaRpc, rpcAirdrop } from "@solana/kit-plugin-rpc";
import { generatedPayer, airdropPayer } from "@solana/kit-plugin-signer";
import { tokenProgram } from "@solana-program/token";

const client = await createClient()
  .use(generatedPayer())
  .use(
    solanaRpc({
      rpcUrl: "http://localhost:8899",
      rpcSubscriptionsUrl: "ws://localhost:8900"
    })
  )
  .use(rpcAirdrop())
  .use(airdropPayer(lamports(1_000_000_000n)))
  .use(tokenProgram());

const mint = await generateKeyPairSigner();

const result = await client.token.instructions
  .createMint({
    newMint: mint, // New mint account to create.
    decimals: 9, // Decimals to define on the mint account.
    mintAuthority: client.payer.address, // Authority allowed to mint new tokens.
    freezeAuthority: client.payer.address // Authority allowed to freeze token accounts.
  })
  .sendTransaction();

const mintAccount = await client.token.accounts.mint.fetch(mint.address);

console.log("Mint Address:", mint.address);
console.log("Mint Account:", mintAccount.data);
console.log("\nTransaction Signature:", result.context.signature);
```

```ts title="Instruction Plan" highlight={20-26}
import { createClient, generateKeyPairSigner, lamports } from "@solana/kit";
import { solanaRpc, rpcAirdrop } from "@solana/kit-plugin-rpc";
import { generatedPayer, airdropPayer } from "@solana/kit-plugin-signer";
import { fetchMint, getCreateMintInstructionPlan } from "@solana-program/token";

const client = await createClient()
  .use(generatedPayer())
  .use(
    solanaRpc({
      rpcUrl: "http://localhost:8899",
      rpcSubscriptionsUrl: "ws://localhost:8900"
    })
  )
  .use(rpcAirdrop())
  .use(airdropPayer(lamports(1_000_000_000n)));

const mint = await generateKeyPairSigner();

const result = await client.sendTransaction(
  await getCreateMintInstructionPlan(client, {
    payer: client.payer, // Account funding account creation.
    newMint: mint, // New mint account to create.
    decimals: 9, // Decimals to define on the mint account.
    mintAuthority: client.payer.address, // Authority allowed to mint new tokens.
    freezeAuthority: client.payer.address // Authority allowed to freeze token accounts.
  })
);

const mintAccount = await fetchMint(client.rpc, mint.address);

console.log("Mint Address:", mint.address);
console.log("Mint Account:", mintAccount.data);
console.log("\nTransaction Signature:", result.context.signature);
```

```ts Instructions highlight={34-46}
import { createClient, generateKeyPairSigner, lamports } from "@solana/kit";
import { solanaRpc, rpcAirdrop } from "@solana/kit-plugin-rpc";
import { generatedPayer, airdropPayer } from "@solana/kit-plugin-signer";
import { getCreateAccountInstruction } from "@solana-program/system";
import {
  fetchMint,
  getInitializeMintInstruction,
  getMintSize,
  TOKEN_PROGRAM_ADDRESS
} from "@solana-program/token";

const client = await createClient()
  .use(generatedPayer())
  .use(
    solanaRpc({
      rpcUrl: "http://localhost:8899",
      rpcSubscriptionsUrl: "ws://localhost:8900"
    })
  )
  .use(rpcAirdrop())
  .use(airdropPayer(lamports(1_000_000_000n)));

// Generate keypair to use as address of mint
const mint = await generateKeyPairSigner();

// Get default mint account size (in bytes)
const space = BigInt(getMintSize());

// Get minimum balance for rent exemption
const rent = await client.rpc.getMinimumBalanceForRentExemption(space).send();

// Create and initialize the mint account in one transaction
const result = await client.sendTransaction([
  getCreateAccountInstruction({
    payer: client.payer, // Account funding account creation.
    newAccount: mint, // New mint account to create.
    lamports: rent, // Lamports funding the new account rent.
    space, // Account size in bytes.
    programAddress: TOKEN_PROGRAM_ADDRESS // Program that owns the new account.
  }),
  getInitializeMintInstruction({
    mint: mint.address, // Mint account to initialize.
    decimals: 9, // Decimals to define on the mint account.
    mintAuthority: client.payer.address, // Authority allowed to mint new tokens.
    freezeAuthority: client.payer.address // Authority allowed to freeze token accounts.
  })
]);

const mintAccount = await fetchMint(client.rpc, mint.address);

console.log("Mint Address:", mint.address);
console.log("Mint Account:", mintAccount.data);
console.log("\nTransaction Signature:", result.context.signature);
```

</CodeGroup>

### Web3.js v3

These examples use the class-based `@solana/web3.js` v3 API with
`@solana-program` instruction builders.

<CodeGroup>

```ts title="Helper Function" highlight={38-50} expandable
import {
  Connection,
  Keypair,
  sendAndConfirmTransaction,
  Transaction,
  LAMPORTS_PER_SOL
} from "@solana/web3.js";
import {
  getCreateMintInstructionPlan,
  getMintDecoder
} from "@solana-program/token";

// Setup: create and fund the fee payer before creating the mint.
const connection = new Connection("http://localhost:8899", "confirmed");
const latestBlockhash = await connection.getLatestBlockhash();

const feePayer = await Keypair.generate();

const airdropSignature = await connection.requestAirdrop(
  feePayer.publicKey,
  LAMPORTS_PER_SOL
);
await connection.confirmTransaction({
  blockhash: latestBlockhash.blockhash,
  lastValidBlockHeight: latestBlockhash.lastValidBlockHeight,
  signature: airdropSignature
});

const mint = await Keypair.generate();

const result = await sendAndConfirmTransaction(
  connection,
  new Transaction({
    feePayer: feePayer.publicKey,
    blockhash: latestBlockhash.blockhash,
    lastValidBlockHeight: latestBlockhash.lastValidBlockHeight
  }).add(
    await getCreateMintInstructionPlan(
      {
        getMinimumBalance: (space: number) =>
          connection.getMinimumBalanceForRentExemption(space)
      },
      {
        payer: feePayer, // Account funding account creation.
        newMint: mint, // New mint account to create.
        decimals: 9, // Decimals to define on the mint account.
        mintAuthority: feePayer.publicKey.toBase58(), // Authority allowed to mint new tokens.
        freezeAuthority: feePayer.publicKey.toBase58() // Authority allowed to freeze token accounts.
      }
    )
  ),
  [feePayer, mint]
);

const mintAccountInfo = await connection.getAccountInfo(mint.publicKey);
const mintAccount = getMintDecoder().decode(mintAccountInfo!.data);

console.log("Mint Address:", mint.publicKey.toBase58());
console.log("Mint Account:", mintAccount);
console.log("\nTransaction Signature:", result);
```

```ts Instructions highlight={44-56} expandable
import {
  Connection,
  Keypair,
  PublicKey,
  sendAndConfirmTransaction,
  SystemProgram,
  Transaction,
  LAMPORTS_PER_SOL
} from "@solana/web3.js";
import {
  getInitializeMint2Instruction,
  getMintDecoder,
  getMintSize,
  TOKEN_PROGRAM_ADDRESS
} from "@solana-program/token";

// Setup: create and fund the fee payer before creating the mint.
const connection = new Connection("http://localhost:8899", "confirmed");
const latestBlockhash = await connection.getLatestBlockhash();

const feePayer = await Keypair.generate();

const airdropSignature = await connection.requestAirdrop(
  feePayer.publicKey,
  LAMPORTS_PER_SOL
);
await connection.confirmTransaction({
  blockhash: latestBlockhash.blockhash,
  lastValidBlockHeight: latestBlockhash.lastValidBlockHeight,
  signature: airdropSignature
});

const mint = await Keypair.generate();
const space = getMintSize();
const mintRent = await connection.getMinimumBalanceForRentExemption(space);

const result = await sendAndConfirmTransaction(
  connection,
  new Transaction({
    feePayer: feePayer.publicKey,
    blockhash: latestBlockhash.blockhash,
    lastValidBlockHeight: latestBlockhash.lastValidBlockHeight
  }).add(
    SystemProgram.createAccount({
      fromPubkey: feePayer.publicKey, // Account funding account creation.
      newAccountPubkey: mint.publicKey, // New mint account to create.
      space, // Account size in bytes.
      lamports: mintRent, // Lamports funding the new account rent.
      programId: new PublicKey(TOKEN_PROGRAM_ADDRESS) // Program that owns the new account.
    }),
    getInitializeMint2Instruction({
      mint: mint.publicKey, // Mint account to initialize.
      decimals: 9, // Decimals to define on the mint account.
      mintAuthority: feePayer.publicKey.toBase58(), // Authority allowed to mint new tokens.
      freezeAuthority: feePayer.publicKey.toBase58() // Authority allowed to freeze token accounts.
    })
  ),
  [feePayer, mint]
);

const mintAccountInfo = await connection.getAccountInfo(mint.publicKey);
const mintAccount = getMintDecoder().decode(mintAccountInfo!.data);

console.log("Mint Address:", mint.publicKey.toBase58());
console.log("Mint Account:", mintAccount);
console.log("\nTransaction Signature:", result);
```

</CodeGroup>

### Rust

Add these dependencies to `Cargo.toml` (tested with Rust 1.89 and 1.98):

```toml Cargo.toml
[dependencies]
anyhow = "1"
tokio = { version = "1", features = ["full"] }
solana-client = "2"
solana-commitment-config = "2"
solana-sdk = "2"
solana-system-interface = "1"
spl-token-interface = "1"
```

```rust Rust highlight={40-53} expandable
use anyhow::Result;
use solana_client::nonblocking::rpc_client::RpcClient;
use solana_commitment_config::CommitmentConfig;
use solana_sdk::{
    program_pack::Pack,
    signature::{Keypair, Signer},
    transaction::Transaction,
};
use solana_system_interface::instruction::create_account;
use spl_token_interface::{id as token_program_id, instruction::initialize_mint, state::Mint};

#[tokio::main]
async fn main() -> Result<()> {
    let client = RpcClient::new_with_commitment(
        String::from("http://localhost:8899"),
        CommitmentConfig::confirmed(),
    );

    // Setup: create and fund the fee payer before creating the mint.
    let fee_payer = Keypair::new();

    let airdrop_signature = client
        .request_airdrop(&fee_payer.pubkey(), 1_000_000_000)
        .await?;
    loop {
        let confirmed = client.confirm_transaction(&airdrop_signature).await?;
        if confirmed {
            break;
        }
    }

    let mint = Keypair::new();
    let mint_rent = client
        .get_minimum_balance_for_rent_exemption(Mint::LEN)
        .await?;

    let latest_blockhash = client.get_latest_blockhash().await?;
    let transaction = Transaction::new_signed_with_payer(
        &[
            create_account(
                &fee_payer.pubkey(), // Account funding account creation.
                &mint.pubkey(), // New mint account to create.
                mint_rent, // Lamports funding the new account rent.
                Mint::LEN as u64, // Account size in bytes.
                &token_program_id(), // Program that owns the new account.
            ),
            initialize_mint(
                &token_program_id(),
                &mint.pubkey(), // Mint account to initialize.
                &fee_payer.pubkey(), // Authority allowed to mint new tokens.
                Some(&fee_payer.pubkey()), // Authority allowed to freeze token accounts.
                9, // Decimals to define on the mint account.
            )?,
        ],
        Some(&fee_payer.pubkey()),
        &[&fee_payer, &mint],
        latest_blockhash,
    );

    let transaction_signature = client.send_and_confirm_transaction(&transaction).await?;
    let mint_account = client.get_account(&mint.pubkey()).await?;
    let mint_data = Mint::unpack(&mint_account.data)?;

    println!("Mint Address: {}", mint.pubkey());
    println!("Mint Account: {:#?}", mint_data);
    println!("\nTransaction Signature: {}", transaction_signature);

    Ok(())
}
```

### Python

This example uses `solana` (solana-py) 0.41 and `solders`:

```bash Terminal
pip install solana==0.41.0 solders==0.29.0
```

```py Python highlight={37-56} expandable
#!/usr/bin/env python3

import asyncio
import json
from solana.rpc.async_api import AsyncClient
from solders.keypair import Keypair
from solders.message import Message
from solders.system_program import create_account, CreateAccountParams
from solders.transaction import Transaction
from solders.token.state import Mint
from spl.token.instructions import initialize_mint
from spl.token.models import InitializeMintParams
from spl.token.constants import MINT_LEN, TOKEN_PROGRAM_ID

DECIMALS = 9

def mint_to_dict(mint_account: Mint) -> dict:
    return {
        "mint_authority": None if mint_account.mint_authority is None else str(mint_account.mint_authority),
        "supply": mint_account.supply,
        "decimals": mint_account.decimals,
        "is_initialized": mint_account.is_initialized,
        "freeze_authority": None if mint_account.freeze_authority is None else str(mint_account.freeze_authority),
    }

async def main():
    rpc = AsyncClient("http://localhost:8899")

    async with rpc:
        # Setup: create and fund the fee payer before creating the mint.
        fee_payer = Keypair()
        mint = Keypair()
        airdrop_signature = (await rpc.request_airdrop(fee_payer.pubkey(), 1_000_000_000)).value
        await rpc.confirm_transaction(airdrop_signature)
        mint_rent = (await rpc.get_minimum_balance_for_rent_exemption(MINT_LEN)).value

        create_mint_instructions = [
            create_account(
                CreateAccountParams(
                    from_pubkey=fee_payer.pubkey(),  # Account funding account creation.
                    to_pubkey=mint.pubkey(),  # New mint account to create.
                    lamports=mint_rent,  # Lamports funding the new account rent.
                    space=MINT_LEN,  # Account size in bytes.
                    owner=TOKEN_PROGRAM_ID,  # Program that owns the new account.
                )
            ),
            initialize_mint(
                InitializeMintParams(
                    program_id=TOKEN_PROGRAM_ID,  # Token program to invoke.
                    mint=mint.pubkey(),  # Mint account to initialize.
                    decimals=DECIMALS,  # Decimals to define on the mint account.
                    mint_authority=fee_payer.pubkey(),  # Authority allowed to mint new tokens.
                    freeze_authority=fee_payer.pubkey(),  # Authority allowed to freeze token accounts.
                )
            ),
        ]
        latest_blockhash = await rpc.get_latest_blockhash()
        transaction = Transaction(
            [fee_payer, mint],
            Message(create_mint_instructions, fee_payer.pubkey()),
            latest_blockhash.value.blockhash,
        )
        result = await rpc.send_transaction(transaction)

        mint_info = Mint.from_bytes((await rpc.get_account_info(mint.pubkey())).value.data)
        mint_account = mint_to_dict(mint_info)

        print("Mint Address:", mint.pubkey())
        print("Mint Account:")
        print(json.dumps(mint_account, indent=2))
        print("\nTransaction Signature:", result.value)

if __name__ == "__main__":
    asyncio.run(main())
```

### Web3.js (legacy)

These examples use legacy `@solana/web3.js` 1.x with `@solana/spl-token`.

<Warning>
  **`@solana/web3.js` 1.x is no longer actively maintained**

  It receives critical fixes only. Use [Kit](/developers/docs/clients/official/javascript#solana-kit) for new code. To migrate existing code, follow the [Kit upgrade guide](https://www.solanakit.com/docs/upgrade-guide), or the [web3.js v3 migration guide](https://github.com/solana-foundation/solana-web3.js/blob/main/docs/web3js-v1-to-v3-migration.md) to keep the class-based API.

  To run this code, install 1.x with `npm install @solana/web3.js@1`. A plain `npm install @solana/web3.js` installs v3, which this code doesn't run on.
</Warning>

<CodeGroup>

```ts title="Helper Function" highlight={20-31} expandable
import { Connection, Keypair, LAMPORTS_PER_SOL } from "@solana/web3.js";
import { createMint, getMint, TOKEN_PROGRAM_ID } from "@solana/spl-token";

// Setup: create and fund the fee payer before creating the mint.
const connection = new Connection("http://localhost:8899", "confirmed");
const latestBlockhash = await connection.getLatestBlockhash();

const feePayer = Keypair.generate();

const airdropSignature = await connection.requestAirdrop(
  feePayer.publicKey,
  LAMPORTS_PER_SOL
);
await connection.confirmTransaction({
  blockhash: latestBlockhash.blockhash,
  lastValidBlockHeight: latestBlockhash.lastValidBlockHeight,
  signature: airdropSignature
});

const mintPubkey = await createMint(
  connection,
  feePayer,
  feePayer.publicKey, // Authority allowed to mint new tokens.
  feePayer.publicKey, // Authority allowed to freeze token accounts.
  9, // Decimals to define on the mint account.
  Keypair.generate(), // New mint account to create.
  {
    commitment: "confirmed"
  },
  TOKEN_PROGRAM_ID
);

const mintAccount = await getMint(
  connection,
  mintPubkey,
  "confirmed",
  TOKEN_PROGRAM_ID
);

console.log("Mint Address:", mintPubkey.toBase58());
console.log("Mint Account:", mintAccount);
```

```ts Instructions highlight={43-56} expandable
import {
  Connection,
  Keypair,
  sendAndConfirmTransaction,
  SystemProgram,
  Transaction,
  LAMPORTS_PER_SOL
} from "@solana/web3.js";
import {
  createInitializeMintInstruction,
  getMint,
  getMinimumBalanceForRentExemptMint,
  MINT_SIZE,
  TOKEN_PROGRAM_ID
} from "@solana/spl-token";

// Setup: create and fund the fee payer before creating the mint.
const connection = new Connection("http://localhost:8899", "confirmed");
const latestBlockhash = await connection.getLatestBlockhash();

const feePayer = Keypair.generate();

const airdropSignature = await connection.requestAirdrop(
  feePayer.publicKey,
  LAMPORTS_PER_SOL
);
await connection.confirmTransaction({
  blockhash: latestBlockhash.blockhash,
  lastValidBlockHeight: latestBlockhash.lastValidBlockHeight,
  signature: airdropSignature
});

const mint = Keypair.generate();
const mintRent = await getMinimumBalanceForRentExemptMint(connection);

const result = await sendAndConfirmTransaction(
  connection,
  new Transaction({
    feePayer: feePayer.publicKey,
    blockhash: latestBlockhash.blockhash,
    lastValidBlockHeight: latestBlockhash.lastValidBlockHeight
  }).add(
    SystemProgram.createAccount({
      fromPubkey: feePayer.publicKey, // Account funding account creation.
      newAccountPubkey: mint.publicKey, // New mint account to create.
      space: MINT_SIZE, // Account size in bytes.
      lamports: mintRent, // Lamports funding the new account rent.
      programId: TOKEN_PROGRAM_ID // Program that owns the new account.
    }),
    createInitializeMintInstruction(
      mint.publicKey, // Mint account to initialize.
      9, // Decimals to define on the mint account.
      feePayer.publicKey, // Authority allowed to mint new tokens.
      feePayer.publicKey, // Authority allowed to freeze token accounts.
      TOKEN_PROGRAM_ID
    )
  ),
  [feePayer, mint]
);

const mintAccount = await getMint(
  connection,
  mint.publicKey,
  "confirmed",
  TOKEN_PROGRAM_ID
);

console.log("Mint Address:", mint.publicKey.toBase58());
console.log("Mint Account:", mintAccount);
console.log("\nTransaction Signature:", result);
```

</CodeGroup>

## How to Add Metadata

A mint account only stores basic token information (supply, decimals,
authorities). To add human-readable metadata like a name, symbol, and image to
your token, you have two options:

<Columns cols={2}>
  <Card title="Metaplex Token Metadata" href="/developers/docs/tokens/metaplex">
   Add metadata using the Metaplex Token Metadata Program. Works with both, the original Token Program and Token-2022.
  </Card>

  <Card title="Token Extensions Metadata" href="/developers/docs/tokens/extensions/metadata">
   Use the built-in metadata extension with Token-2022. 
   The metadata extension is only available for mint accounts created with Token-2022.
   To add metadata to mint accounts created with the original Token Program, use the Metaplex Token Metadata Program.
  </Card>
</Columns>
