Skip to content
 
 

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create and Mint process

Create your own coin on Solana easily. This repository provides resources for deploying SPL and SPL Token-2022 tokens.

Create an SPL

Create an SPL and set metadata at once using src/CreateMetadata.ts file. Customize variables on your own.

Create an SPL token-2022

  1. Create an spl token-2022 using src/CreateAndMint.ts

    • simply run this command
    yarn start
    • This file creates a token and mint to the owner. You can customize the script on your own.
  2. Get mint account from output.

    • Please get mint account address from associated tx of output. Don't skip output check.

    • Save whatever you need.

    • Go .env file and edit SPL_TOKEN_2022_MINT value with your mint address.

  3. Mint custom amount using src/CreateAndMint.ts file. You need to customize the values of this file or are able to separate mint process.

Create a metadata for mint

If you check the mint address, you can see unrecognized token detail on explorer. We need to create a metadata and set it now. We use metaplex

  1. Create a metadata with metaplex token standard using src/CreateMetadata22.ts

    • run this command
    yarn metadata
    • This script sets metadata of mint for you.

    • You can customize metadata from this script.

  2. Done

Happy deploying!

About

Deploy spl token-2022 and set metadata(create and mint a fungible token on sol)

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages