Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

versedpro/deploy-spl

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.