Back to articles
Solana Token Launchpad (with metadata) -2

Solana Token Launchpad (with metadata) -2

via Dev.to WebdevTejaswa Hinduja

I hope you are coming from the previous blog So we created tokens using the token-22 program which supports extensions (Metadata Pointer Extension) stored directly in the mint account. Token-2022 can store basic metadata on-chain:-name,symbol,uri,etc. The uri is a link to off-chain metadata json { "name": "My Token", "symbol": "MT", "description": "Example token", "image": "arweave://...", "attributes": [...] } There are a few ways to store this json, the easiest i found is through irys(arweave).Lets get started with that, install these first @irys/web-upload-solana , @irys/web-upload Lets first set up the a irys uploader and fund the irys account so that they give us some storage to upload our data Now do you remember in the last blog we built a form for the user to enter some metadata for the token, now we need to upload that metadata and convert it into a metaplex std json What this function does is it takes the input from the form and converts it into a json(metaplex std) and then

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles