Skip to content

Token-22 with metadata

Course: Programs, Accounts and the Token Program - chapter 11

https://cdn.100xdevs.com/metadata.json

Create a token with metadata enabled
spl-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb create-token --enable-metadata
Create metadata
spl-token initialize-metadata pXfZ6Hg2s78m1iSRVsdzos9TmfkqkQdv5MmQrr77ZQK 100xx 100xxx https://cdn.100xdevs.com/metadata.json
Create ATA
spl-token create-account pXfZ6Hg2s78m1iSRVsdzos9TmfkqkQdv5MmQrr77ZQK
Mint
spl-token mint 1000
Check out the token in your wallet

  1. Show all the tokens that the user has in our web based wallet
  2. Create a token launchpad website that lets users launch tokens (take things like decimals, freeze athority as inputs from the user)