-
Create a 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 with your own.
-
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.
-
-
Mint custom amount using
src/CreateAndMint.ts
file. You need to customize the values of this file or are able to separate mint process.
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
-
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.
-
Done
Happy deploying!