Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Latest commit

 

History

History

README.md

Laboratory 2 🧑‍💻

Solana Transaction Scripts

This repository contains TypeScript scripts to interact with the Solana blockchain, including creating token mints, minting tokens, and transferring tokens.

Commands 🛠️

1. Create Token Mint 💰

Use this command to create a new token mint on the Solana blockchain.

npx esrun create-token-mint.ts

This script initializes a new SPL token mint and returns an explorer link to verify the mint.

Ex1: Create Token Mint
Ex1: Create Token Mint

solana account <new-address>

Ex1.1: Check Token Details
Ex1.1: Check Token Details

2. Mint Tokens 🪙

This command mints additional tokens to an associated token account.

npx esrun mint-tokens.ts

Ex2: Mint Tokens
Ex2: Mint Tokens

3. Transfer Tokens 🔁

This command transfers SPL tokens from one account to another. Ensure that the recipient has an associated token account.

npx esrun transfer-tokens.ts

Ex3: Transfer Tokens
Ex3: Transfer Tokens

spl-token display <token-address>

Ex3.1: Check SPL Token Details
Ex3.1: Check SPL Token Details