Skip to main content
100%

Mint Solana SPL token + Metadata

✓ Published0🌍 Public
RRestuta
Last edited Apr 8, 2024
Created on Apr 8, 2024

This example demonstrates the process of creating and minting a fungible SPL token with metadata on the Solana blockchain. It creates a new token with a configurable name, symbol, and metadata URI, setting a supply of 100 million tokens with 8 decimal places. The code uses the `@metaplex-foundation/umi` library for blockchain interaction and `@metaplex-foundation/mpl-token-metadata` for the `createAndMint` function, alongside `@solana/web3.js` for Solana-specific utilities like `LAMPORTS_PER_SOL`. It also integrates `mplToolbox` for setting a compute unit price and `mplCandyMachine` for additional functionality. The minting process is initiated via a transaction builder that sends and confirms the transaction, logging the resulting mint public key.

AI-generated description

Similar vizzes