https://solanaminty.com
https://solanaminty.com
To reiterate, all spl-token is doing is sending directions to the token program. The createAccount operate here is a helper perform within the spl-token library that submits a transaction with two directions. To do that, we'll use the createMint function from @solana/. When creating a brand new mint from a script that has entry to your secret key, you may simply use the createMint function. The createMint operate returns the publicKey of the new token mint. Note that the primary line in the function physique of the previous code sni