diff --git a/ts/cluster1/spl_mint.ts b/ts/cluster1/spl_mint.ts index e69de29..0c0df5f 100644 --- a/ts/cluster1/spl_mint.ts +++ b/ts/cluster1/spl_mint.ts @@ -0,0 +1,24 @@ +import { Keypair, PublicKey, Connection, Commitment } from "@solana/web3.js"; +import { getOrCreateAssociatedTokenAccount, mintTo } from '@solana/spl-token'; +import wallet from "../wba-wallet.json" + +// Import our keypair from the wallet file +const keypair = Keypair.fromSecretKey(new Uint8Array(wallet)); + +//Create a Solana devnet connection +const commitment: Commitment = "confirmed"; +const connection = new Connection("https://api.devnet.solana.com", commitment); + +const token_decimals = 1_000_000n; + + +// Mint address +const mint = new PublicKey(""); + +(async () => { + try { + // Start here + } catch(error) { + console.log(`Oops, something went wrong: ${error}`) + } +})() \ No newline at end of file