web3.js – How to create SPL Token using Visual Code
I am also trying to find the best way what library should I use for creating minting web3 app.
In my research a found out that @solana/spl-token is old library which is not longer maintained but it is archived and new library together with @solana/web3.js v2 is under the development.
This is official guide for NextJS typescript app for @solana/spl-token and @solana/web3.js v1: solana.com/developers/cookbook/tokens/create-mint-account. You can combine it with other cookbook examples or guide from solana docs: solana.com/developers/guides, solana.com/developers/cookbook
The new version of @solana/web3.js v2 does not have good docs yet but I found out this guide for minting token with @solana/web3.js v2 and new @solana-program/system @solana-program/token (successors of @solana/spl-token). Guide is here: www.quicknode.com/guides/solana-development/tooling/web3-2/fungibles
As I understand it correctly, we are in the middle of the migration from old interaction approve with solana blockchain to the new approach (@solana/web3.js v2 and new @solana-program/system @solana-program/token).
I hope it helps you. I hope I understand it correctly. Please, someone feel free to correct my thought.
Read more here: Source link
