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

Latest commit

 

History

History

README.md

Laboratory 3 🧑‍💻

Solana Transaction Scripts

This repository contains TypeScript scripts to interact with the Solana blockchain, including uploading NFT images, NFT metadata and creating NFTs.

Commands 🛠️

1. Upload NFT Image 🖼️

Use this command to upload an image to be used for an NFT.

npx esrun nft-image.ts

This script uploads an image and returns a URI to access it.

Ex1: Upload NFT Image
Ex1: Upload NFT Image

2. Upload NFT Metadata 📄

This command uploads metadata for an NFT, including name, symbol, description, and attributes.

npx esrun nft-metadata.ts

This script generates metadata in JSON format and uploads it to a decentralized storage service, returning a metadata URI.

Ex2: Upload NFT Metadata
Ex2: Upload NFT Metadata

Checking https://devnet.irys.xyz/FrMQVN9YZakxmoiR7rXaxxESxhFSB4YbTM5mx7SNphdw for NFT Metadata.

Ex2.1: Check for NFT Metadata
Ex2.1: Check for NFT Metadata

3. Create NFT 🎨

This command mints a new NFT on the Solana blockchain using the uploaded metadata.

npx esrun nft-create.ts

This script initializes a new NFT mint, assigns metadata, and confirms the transaction on the blockchain.

Ex3: Create NFT
Ex3: Create NFT

Checking https://solscan.io/tx/2prAC26AzT1M7U6x89Ji5v5mGR6XzNkYEqB46AmQ8wQQTAoLN48TgXY8WdkrdvdCdXZnm9x3kyWNxjKE3uULRsdF?cluster=devnet and Mint for NFT Details.

Ex3.1: NFT Details
Ex3.1: NFT Details